X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fgroup-item.c;h=4fbc08630a91d888e6e0675b8b8dc4e1bc82031f;hb=d9153beacc1308b37dbaf4f64155553360aa0173;hp=fd172accdca40f912705cd3ab90743b8c31e5533;hpb=71e127e1085ec56f4aa51153701d96a80ef8ff05;p=pspp diff --git a/src/output/group-item.c b/src/output/group-item.c index fd172accdc..4fbc08630a 100644 --- a/src/output/group-item.c +++ b/src/output/group-item.c @@ -27,12 +27,19 @@ struct group_open_item * group_open_item_create (const char *command_name) +{ + return group_open_item_create_nocopy ( + command_name ? xstrdup (command_name) : NULL); +} + +struct group_open_item * +group_open_item_create_nocopy (char *command_name) { struct group_open_item *item; item = xmalloc (sizeof *item); output_item_init (&item->output_item, &group_open_item_class); - item->command_name = command_name ? xstrdup (command_name) : NULL; + item->command_name = command_name; return item; }