X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmrset.c;h=63f4b3fe339cc03248c3631e71132cd3c80e1384;hb=4c60ca0d4871358b2f73a9353e0d2a8e86d91aa0;hp=38b0ab2d5266e88192342166df828cd7a98e2bd9;hpb=fe8dc2171009e90d2335f159d05f7e6660e24780;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;