From 3eb15f04adf323d90cc9d8f00e3672efaa2b34de Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 5 Sep 2021 14:15:52 +0000 Subject: [PATCH] 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] --- sharkd_session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharkd_session.c b/sharkd_session.c index f70cb2bc54..31163f5d82 100644 --- a/sharkd_session.c +++ b/sharkd_session.c @@ -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 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++) {