X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-import-textfile.c;h=d9dcccef2868d11b8d76e475b6ecf38655fe776d;hb=f20d313de2b85419c3e2e22a78cdcdce499af43d;hp=5ef83fcd2a3e63e216c870446df3a67c029d84fe;hpb=07da9f454c17fb961cae09f6d7d505f7abb281c0;p=pspp diff --git a/src/ui/gui/psppire-import-textfile.c b/src/ui/gui/psppire-import-textfile.c index 5ef83fcd2a..d9dcccef28 100644 --- a/src/ui/gui/psppire-import-textfile.c +++ b/src/ui/gui/psppire-import-textfile.c @@ -88,7 +88,7 @@ choose_likely_separators (PsppireImportAssistant *ia) 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 (; @@ -120,7 +120,7 @@ choose_likely_separators (PsppireImportAssistant *ia) 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);