From 3438243c1e976374314a5377237fa352bf5247e7 Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Fri, 28 Mar 2014 13:44:34 +0100 Subject: Fix crash when calling "MAP Summary" dialog when no file is open Fixes bug 9934 Change-Id: I2915d0715431cf983511fe7f5f036be99bbd2467 Reviewed-on: https://code.wireshark.org/review/853 Reviewed-by: Pascal Quantin Tested-by: Pascal Quantin --- ui/gtk/gsm_map_summary.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/gtk') diff --git a/ui/gtk/gsm_map_summary.c b/ui/gtk/gsm_map_summary.c index 96746eb4a7..0e903583fe 100644 --- a/ui/gtk/gsm_map_summary.c +++ b/ui/gtk/gsm_map_summary.c @@ -80,6 +80,10 @@ void gsm_map_stat_gtk_sum_cb(GtkAction *action _U_, gpointer user_data _U_) int tot_invokes, tot_rr; double tot_invokes_size, tot_rr_size; + if (cfile.state == FILE_CLOSED) { + return; + } + /* initialize the tally */ summary_fill_in(&cfile, &summary); -- cgit v1.2.3