From b204e38aef8bf9905e8d3d1e44361ae77a8f0c3f Mon Sep 17 00:00:00 2001 From: Anders Broman Date: Tue, 5 Mar 2013 22:15:20 +0000 Subject: Use explicit casts. svn path=/trunk/; revision=48108 --- capinfos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'capinfos.c') 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)) { -- cgit v1.2.1