From: Jaroslav Kysela Date: Sun, 18 Oct 2015 09:05:35 +0000 (+0200) Subject: bouquet: fix condition in bouquet_change_comment() X-Git-Tag: v4.2.1~1880 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecd402e3652ab3d307193c02da174310de9c170c;p=thirdparty%2Ftvheadend.git bouquet: fix condition in bouquet_change_comment() --- diff --git a/src/bouquet.c b/src/bouquet.c index 661950eb1..b208a863a 100644 --- a/src/bouquet.c +++ b/src/bouquet.c @@ -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);