summaryrefslogtreecommitdiff
path: root/epan/diam_dict.l
diff options
context:
space:
mode:
Diffstat (limited to 'epan/diam_dict.l')
-rw-r--r--epan/diam_dict.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/epan/diam_dict.l b/epan/diam_dict.l
index b176d8b01a..8cc2ef2221 100644
--- a/epan/diam_dict.l
+++ b/epan/diam_dict.l
@@ -583,6 +583,11 @@ ddict_t* ddict_scan(const char* system_directory, const char* filename) {
sys_dir = system_directory;
yyin = ddict_open(sys_dir,filename);
+
+ if (yyin == NULL) {
+ D(("unable to open %s\n", filename));
+ return NULL;
+ }
write_ptr = NULL;
read_ptr = NULL;