summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capinfos.c b/capinfos.c
index 2581b32cc7..5adc480618 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -816,7 +816,7 @@ process_cap_file(wtap *wth, const char *filename)
gboolean know_order = FALSE;
order_t order = IN_ORDER;
- cf_info.encap_counts = g_malloc0(WTAP_NUM_ENCAP_TYPES * sizeof(int));
+ cf_info.encap_counts = g_new0(int,WTAP_NUM_ENCAP_TYPES);
/* Tally up data that we need to parse through the file to find */
while (wtap_read(wth, &err, &err_info, &data_offset)) {