From 03a38e1dab254d125d00cc3507202f559249c40d Mon Sep 17 00:00:00 2001 From: Alistair Veitch Date: Fri, 22 Jan 2016 17:56:02 -0800 Subject: fix uninitialized variable usage --- src/core/census/tag_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/census') diff --git a/src/core/census/tag_set.c b/src/core/census/tag_set.c index 8908a2d5f3..9b65a1dfa1 100644 --- a/src/core/census/tag_set.c +++ b/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); -- cgit v1.2.3