Merge pull request #4857 from a-veitch/tag_set_fix

fix uninitialized variable usage
pull/4858/head
Craig Tiller 9 years ago
commit ea05099f52
  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