aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2017-12-04 07:28:49 +0000
committerAnders Broman <a.broman58@gmail.com>2017-12-04 09:11:08 +0000
commit72c2256633e37b7bbec0ea72e90e27a0267bef8d (patch)
tree2462c4bb9635b56dfab3445eabd157eecfe2625f
parentd3a3b0ba27fc46a48273f8f311e1b7fd751fcbc5 (diff)
make-dissectors: Fix null pointer dereference for error condition
Found by scan-build. Change-Id: I89b56bac951ccb7054d494592928306a860f9e5e Reviewed-on: https://code.wireshark.org/review/24697 Petri-Dish: João Valverde <j@v6e.pt> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/make-dissectors.c2
1 files changed, 1 insertions, 1 deletions
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);
}