More uses of XMALLOC, XNMALLOC and XCALLOC.
[pspp] / lib / gl_anytreehash_list1.h
index fac02b6aed32dc47965eb10942d5a133e75a2c6d..0ef6d566ac5fd3a3ef9a1edd9830ed2c4d0af9a2 100644 (file)
@@ -157,8 +157,7 @@ add_to_bucket (gl_list_t list, gl_list_node_t new_node)
                      gl_oset_add (nodes, node);
                      gl_oset_add (nodes, new_node);
 
-                     multi_entry =
-                       (struct gl_multiple_nodes *) xmalloc (sizeof (struct gl_multiple_nodes));
+                     multi_entry = XMALLOC (struct gl_multiple_nodes);
                      multi_entry->h.hash_next = entry->hash_next;
                      multi_entry->h.hashcode = entry->hashcode;
                      multi_entry->magic = MULTIPLE_NODES_MAGIC;