]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bouquet: one more bouquet_change_comment() fix
authorJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 19:53:05 +0000 (21:53 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 19:53:05 +0000 (21:53 +0200)
src/bouquet.c

index b208a863a9642aaf14ca6c02a9b738201d60a3df..7b101d3e6ae1c299174fcf6babacc3830182b54f 100644 (file)
@@ -545,7 +545,7 @@ bouquet_change_comment ( bouquet_t *bq, const char *comment, int replace )
   if (!replace && bq->bq_comment && bq->bq_comment[0])
     return;
   free(bq->bq_comment);
-  bq->bq_comment = strdup(comment);
+  bq->bq_comment = comment ? strdup(comment) : NULL;
   bq->bq_saveflag = 1;
 }