gchar *line_text = NULL;
gtk_tree_model_get (GTK_TREE_MODEL (ia->text_file), &iter, 1, &line_text, -1);
- gint *counts = xzalloc (sizeof *counts * SEPARATOR_CNT);
+ gint *counts = XCALLOC (SEPARATOR_CNT, gint);
struct substring cs = ss_cstr (line_text);
for (;
if (cn == NULL)
{
- struct separator_count_node *new_cn = xzalloc (sizeof *new_cn);
+ struct separator_count_node *new_cn = XZALLOC (struct separator_count_node);
new_cn->occurance = counts[j];
new_cn->quantity = 1;
hmap_insert (&count_map[j], &new_cn->node, hash);