Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bouquet: one more bouquet_change_comment() fix
  • Loading branch information
perexg committed Oct 18, 2015
1 parent 00031a8 commit 3bbcdfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bouquet.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3bbcdfa

Please sign in to comment.