Skip to content
Snippets Groups Projects
Commit ea05099f authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #4857 from a-veitch/tag_set_fix

fix uninitialized variable usage
parents b9f11dd4 03a38e1d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment