Skip to content

Commit

Permalink
fix uninitialized variable usage
Browse files Browse the repository at this point in the history
  • Loading branch information
a-veitch committed Jan 23, 2016
1 parent b9f11dd commit 03a38e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/census/tag_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 03a38e1

Please sign in to comment.