diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2021-09-05 14:15:52 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2021-09-07 05:56:36 +0000 |
commit | 3eb15f04adf323d90cc9d8f00e3672efaa2b34de (patch) | |
tree | 361388be9a6ac9851c7e56147de662cc6103dc7b /sharkd_session.c | |
parent | 5fc65491785748afa53b91b28035e5181b73e186 (diff) |
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]
Diffstat (limited to 'sharkd_session.c')
-rw-r--r-- | sharkd_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |