sharkd_session: Fix Branch condition evaluate to a garbage value

sharkd_session.c:3307:18: warning: Branch condition evaluates to a garbage value [core.uninitialized.Branch]
This commit is contained in:
Alexis La Goutte 2021-09-05 14:15:52 +00:00
parent 5fc6549178
commit 3eb15f04ad
1 changed files with 1 additions and 1 deletions

View File

@ -3458,7 +3458,7 @@ sharkd_session_process_frame_cb(epan_dissect_t *edt, proto_tree *tree, struct ep
guint count = g_slist_length((GSList *) data_src); guint count = g_slist_length((GSList *) data_src);
guint i; guint i;
tvbs = (tvbuff_t **) g_malloc((count + 1) * sizeof(*tvbs)); tvbs = (tvbuff_t **) g_malloc0((count + 1) * sizeof(*tvbs));
for (i = 0; i < count; i++) for (i = 0; i < count; i++)
{ {