X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.c;h=a0428acc82c44209e3c91d16e98ebb2a6a34a8c2;hb=cb08510bbbab7646bc1031427243489024d22a3b;hp=7bcf2aa10d67f8f72cf19fb23d9ed7c0f620d505;hpb=1d45a6b40b6f2552e00eabf736608c4166f7a540;p=pspp diff --git a/src/output/text-item.c b/src/output/text-item.c index 7bcf2aa10d..a0428acc82 100644 --- a/src/output/text-item.c +++ b/src/output/text-item.c @@ -75,7 +75,7 @@ text_item_create (enum text_item_type type, const char *text, const char *label) { return text_item_create_nocopy (type, xstrdup (text), - label ? xstrdup (label) : NULL); + xstrdup_if_nonnull (label)); } /* Creates and returns a new text item containing VALUE, TYPE, and LABEL.