X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fdata%2Fmrset.c;h=63f4b3fe339cc03248c3631e71132cd3c80e1384;hb=45b5187607a07020f4773e411744a52a59fcc9e8;hp=38b0ab2d5266e88192342166df828cd7a98e2bd9;hpb=9ade26c8349b4434008c46cf09bc7473ec743972;p=pspp diff --git a/src/data/mrset.c b/src/data/mrset.c index 38b0ab2d52..63f4b3fe33 100644 --- 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->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;