Browse Source

Clean old subcscription entry value

Mada 6 years ago
parent
commit
23996da512
1 changed files with 1 additions and 0 deletions
  1. 1 0
      admin/AdminLog.c

+ 1 - 0
admin/AdminLog.c

@@ -243,6 +243,7 @@ static void subscribe(Dict* args, void* vcontext, String* txid, struct Allocator
         error = "Max subscription count reached.";
     } else {
         struct Subscription* sub = &log->subscriptions[log->subscriptionCount];
+        Bits_memset(sub, 0, sizeof(struct Subscription));
         sub->logLevel = level;
         sub->alloc = Allocator_child(log->alloc);
         String* fileStrCpy = String_clone(fileStr, sub->alloc);