aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/gsm_map_summary.c
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2014-03-28 13:44:34 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2014-03-28 12:48:50 +0000
commit3438243c1e976374314a5377237fa352bf5247e7 (patch)
tree56f4de951607cb1d91715d62f12f7d8101cfd4c6 /ui/gtk/gsm_map_summary.c
parentb2509f67b8d64ecb5de902b9954c7659605c4395 (diff)
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 <pascal.quantin@gmail.com> Tested-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/gtk/gsm_map_summary.c')
-rw-r--r--ui/gtk/gsm_map_summary.c4
1 files changed, 4 insertions, 0 deletions
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);