X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fgl_anyhash_list2.h;h=d7191168669d8c243a22af1b61f457c9cd4f18e3;hb=4ad44dd748d5da39555cdf305568280d69a23354;hp=78ee593a803cecaac2c1be427103cb1d34111177;hpb=935e9f0bda3d20a28516e3e369946fe6fbe60043;p=gnulib.git diff --git a/lib/gl_anyhash_list2.h b/lib/gl_anyhash_list2.h index 78ee593a8..d71911686 100644 --- a/lib/gl_anyhash_list2.h +++ b/lib/gl_anyhash_list2.h @@ -100,8 +100,7 @@ hash_resize (gl_list_t list, size_t estimate) { gl_hash_entry_t *old_table = list->table; /* Allocate the new table. */ - gl_hash_entry_t *new_table = - (gl_hash_entry_t *) xzalloc (new_size * sizeof (gl_hash_entry_t)); + gl_hash_entry_t *new_table = XCALLOC (new_size, gl_hash_entry_t); size_t i; /* Iterate through the entries of the old table. */