VoIP Call (GTK): Fix Dereference of null pointer found by Clang analyzer

Change-Id: I80029b6238c78dcab83a6a70eca0af5b66e1488d
Reviewed-on: https://code.wireshark.org/review/5401
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-11-19 21:34:50 +01:00 committed by Evan Huus
parent c07e9fe450
commit fecea9745e
1 changed files with 3 additions and 0 deletions

View File

@ -358,6 +358,9 @@ on_graph_bt_clicked(GtkButton *button _U_, gpointer user_data _U_)
voip_calls_info_t *listinfo;
voip_calls_tapinfo_t *tapinfo = voip_calls_get_info();
if(!tapinfo->graph_analysis){
return;
}
g_queue_sort(tapinfo->graph_analysis->items, graph_analysis_sort_compare, NULL);
/* reset the "display" parameter in graph analysis */