]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Fixup updating comment in _dvr_entry_update. Only overwrite existing title if comment...
authorksooo <3226626+ksooo@users.noreply.github.com>
Fri, 6 Sep 2024 14:30:55 +0000 (16:30 +0200)
committerFlole <Flole998@users.noreply.github.com>
Fri, 6 Sep 2024 17:14:49 +0000 (19:14 +0200)
src/dvr/dvr_db.c

index 153e11d4b420acf8dbfe84533e442f5def8747b9..232b3e15f6ef26dd57915676e16abe88e9e32191 100644 (file)
@@ -2569,9 +2569,9 @@ static dvr_entry_t *_dvr_entry_update
   }
 
   /* Comment */
-  if (strcmp(de->de_comment ?: "", comment ?: "")) {
+  if (comment && strcmp(de->de_comment ?: "", comment)) {
     free(de->de_comment);
-    de->de_comment = comment ? strdup(comment) : NULL;
+    de->de_comment = strdup(comment);
     save |= DVR_UPDATED_COMMENT;
   }