projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cairo-fsm: Implement dashed lines.
[pspp]
/
src
/
output
/
group-item.c
diff --git
a/src/output/group-item.c
b/src/output/group-item.c
index fd172accdca40f912705cd3ab90743b8c31e5533..34ca63eab33858c84717f159b4ede4c67e04bf6a 100644
(file)
--- a/
src/output/group-item.c
+++ b/
src/output/group-item.c
@@
-1,5
+1,5
@@
/* PSPP - a program for statistical analysis.
/* PSPP - a program for statistical analysis.
- Copyright (C) 2018 Free So
n
ftware Foundation, Inc.
+ Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-27,12
+27,19
@@
struct group_open_item *
group_open_item_create (const char *command_name)
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);
{
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;
}
return item;
}