fix uninitialized variable usage

pull/4857/head
Alistair Veitch 9 years ago
parent b9f11dd47b
commit 03a38e1dab
  1. 2
      src/core/census/tag_set.c

@ -253,7 +253,7 @@ static void tag_set_flatten(struct tag_set *tags) {
if (tags->ntags == tags->ntags_alloc) return;
bool found_deleted = false; // found a deleted tag.
char *kvp = tags->kvm;
char *dbase; // record location of deleted tag
char *dbase = NULL; // record location of deleted tag
for (int i = 0; i < tags->ntags_alloc; i++) {
struct raw_tag tag;
char *next_kvp = decode_tag(&tag, kvp, 0);

Loading…
Cancel
Save