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>
This commit is contained in:
Pascal Quantin 2014-03-28 13:44:34 +01:00
parent b2509f67b8
commit 3438243c1e
1 changed files with 4 additions and 0 deletions

View File

@ -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);