projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "work on crash"
[pspp]
/
src
/
data
/
mrset.c
diff --git
a/src/data/mrset.c
b/src/data/mrset.c
index 38b0ab2d5266e88192342166df828cd7a98e2bd9..63f4b3fe339cc03248c3631e71132cd3c80e1384 100644
(file)
--- a/
src/data/mrset.c
+++ b/
src/data/mrset.c
@@
-40,7
+40,7
@@
mrset_clone (const struct mrset *old)
new = xmalloc (sizeof *new);
new->name = xstrdup (old->name);
new = xmalloc (sizeof *new);
new->name = xstrdup (old->name);
- new->label =
old->label != NULL ? xstrdup (old->label) : NULL
;
+ new->label =
xstrdup_if_nonnull (old->label)
;
new->type = old->type;
new->vars = xmemdup (old->vars, old->n_vars * sizeof *old->vars);
new->n_vars = old->n_vars;
new->type = old->type;
new->vars = xmemdup (old->vars, old->n_vars * sizeof *old->vars);
new->n_vars = old->n_vars;