Skip to content

Commit 2e92208

Browse files
ksoooFlole998
authored andcommitted
Fixup updating comment in _dvr_entry_update. Only overwrite existing title if comment is not NULL. Follows the same logic now as other updates done in this function.
1 parent 4aff543 commit 2e92208

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/dvr/dvr_db.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2569,9 +2569,9 @@ static dvr_entry_t *_dvr_entry_update
25692569
}
25702570

25712571
/* Comment */
2572-
if (strcmp(de->de_comment ?: "", comment ?: "")) {
2572+
if (comment && strcmp(de->de_comment ?: "", comment)) {
25732573
free(de->de_comment);
2574-
de->de_comment = comment ? strdup(comment) : NULL;
2574+
de->de_comment = strdup(comment);
25752575
save |= DVR_UPDATED_COMMENT;
25762576
}
25772577

0 commit comments

Comments
 (0)