diff options
Diffstat (limited to 'ui/gtk/main.c')
-rw-r--r-- | ui/gtk/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/gtk/main.c b/ui/gtk/main.c index 86a3574843..fc871d718b 100644 --- a/ui/gtk/main.c +++ b/ui/gtk/main.c @@ -2513,8 +2513,9 @@ DIAG_ON(cast-qual) "-G" flag, as the "-G" flag dumps information registered by the dissectors, and we must do it before we read the preferences, in case any dissectors register preferences. */ - epan_init(register_all_protocols,register_all_protocol_handoffs, - splash_update, (gpointer) splash_win); + if (!epan_init(register_all_protocols,register_all_protocol_handoffs, + splash_update, (gpointer) splash_win)) + return 2; splash_update(RA_LISTENERS, NULL, (gpointer)splash_win); |