diff --git a/epan/dissectors/make-dissectors.c b/epan/dissectors/make-dissectors.c index bca8ce1e38..68bf37df4e 100644 --- a/epan/dissectors/make-dissectors.c +++ b/epan/dissectors/make-dissectors.c @@ -68,7 +68,7 @@ scan_list(const char *file, GPtrArray *protos, GPtrArray *handoffs) char *contents, *arg; GError *err = NULL; - if (!g_file_get_contents(file, &contents, NULL, NULL)) { + if (!g_file_get_contents(file, &contents, NULL, &err)) { fprintf(stderr, "%s: %s\n", file, err->message); exit(1); }