diff options
-rw-r--r-- | ui/cli/tap-expert.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/cli/tap-expert.c b/ui/cli/tap-expert.c index 07fdfb5f6c..c5113918d2 100644 --- a/ui/cli/tap-expert.c +++ b/ui/cli/tap-expert.c @@ -234,10 +234,8 @@ static void expert_stat_init(const char *opt_arg, void *userdata _U_) } } - /* Create top-level struct */ - hs = g_new(expert_tapdata_t, 1); - memset(hs, 0, sizeof(expert_tapdata_t)); + hs = g_new0(expert_tapdata_t, 1); /* Allocate chunk of strings */ hs->text = g_string_chunk_new(100); |