]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
bouquet: fix condition in bouquet_change_comment()
authorJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 09:05:35 +0000 (11:05 +0200)
committerJaroslav Kysela <perex@perex.cz>
Sun, 18 Oct 2015 09:07:04 +0000 (11:07 +0200)
src/bouquet.c

index 661950eb1df37ec762345c1da7242a32fc5f45ec..b208a863a9642aaf14ca6c02a9b738201d60a3df 100644 (file)
@@ -539,11 +539,10 @@ bouquet_save(bouquet_t *bq, int notify)
 /**
  *
  */
-
 void
 bouquet_change_comment ( bouquet_t *bq, const char *comment, int replace )
 {
-  if (!replace && (bq->bq_comment || bq->bq_comment[0]))
+  if (!replace && bq->bq_comment && bq->bq_comment[0])
     return;
   free(bq->bq_comment);
   bq->bq_comment = strdup(comment);