aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/census
diff options
context:
space:
mode:
authorGravatar Alistair Veitch <aveitch@google.com>2016-01-22 17:56:02 -0800
committerGravatar Alistair Veitch <aveitch@google.com>2016-01-22 17:56:02 -0800
commit03a38e1dab254d125d00cc3507202f559249c40d (patch)
tree592f6ed920eaae955f0f5b78480fecb5ac9311a3 /src/core/census
parentb9f11dd47b5a01b24176035416d5fe45594c562d (diff)
fix uninitialized variable usage
Diffstat (limited to 'src/core/census')
-rw-r--r--src/core/census/tag_set.c2
1 files changed, 1 insertions, 1 deletions
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);