diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-09-10 10:12:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-09-10 10:12:34 +0000 |
commit | 49fd685758c10df60e709075dc7f593af1fe48e3 (patch) | |
tree | 2cf2de233f89bbdbaf5995d3dac920da8265b6d5 /epan | |
parent | 1d5b83b84277198a087777d7dc58d335cba6be72 (diff) |
When allocating a hash table for a given MAC address range, use
"g_malloc0()", so it starts out initialized to all null pointers.
svn path=/trunk/; revision=6247
Diffstat (limited to 'epan')
-rw-r--r-- | epan/resolv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/resolv.c b/epan/resolv.c index 1ca6638d10..50440fe6a9 100644 --- a/epan/resolv.c +++ b/epan/resolv.c @@ -1,7 +1,7 @@ /* resolv.c * Routines for network object lookup * - * $Id: resolv.c,v 1.26 2002/09/09 19:38:11 guy Exp $ + * $Id: resolv.c,v 1.27 2002/09/10 10:12:34 guy Exp $ * * Laurent Deniel <deniel@worldnet.fr> * @@ -739,7 +739,7 @@ static void add_manuf_name(guint8 *addr, unsigned int mask, guchar *name) well-known-address table, creating that table if necessary. */ wka_tp = wka_table[mask]; if (wka_tp == NULL) - wka_tp = wka_table[mask] = g_malloc(sizeof *wka_table[mask]); + wka_tp = wka_table[mask] = g_malloc0(sizeof *wka_table[mask]); hash_idx = hash_eth_wka(addr, mask); |