]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dvr: Fix logging of duplicates (needs different buffer for second uuid).
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Fri, 21 Sep 2018 23:13:10 +0000 (00:13 +0100)
committerperexg <perex@perex.cz>
Wed, 26 Sep 2018 15:30:47 +0000 (17:30 +0200)
src/dvr/dvr_db.c

index 9a1232386c00a196c54514eec22cbf44e31489a7..597e27b4131fbc288b0847807b98f61c1eea185a 100644 (file)
@@ -949,7 +949,7 @@ dvr_entry_create(const char *uuid, htsmsg_t *conf, int clone)
   dvr_entry_t *de, *de2;
   int64_t start, stop;
   htsmsg_t *m;
-  char ubuf[UUID_HEX_SIZE];
+  char ubuf[UUID_HEX_SIZE], ubuf2[UUID_HEX_SIZE];
   const char *s;
 
   if (conf) {
@@ -1032,7 +1032,7 @@ dvr_entry_create(const char *uuid, htsmsg_t *conf, int clone)
           idnode_uuid_as_str(&de->de_id, ubuf),
           lang_str_get(de->de_title, NULL), DVR_CH_NAME(de),
           (int64_t)de2->de_start, de->de_creator ?: "",
-          idnode_uuid_as_str(&de2->de_id, ubuf));
+          idnode_uuid_as_str(&de2->de_id, ubuf2));
         dvr_entry_destroy(de, 1);
         return NULL;
       }