commit | fbe58079b4ac12462f1ad7a23ff745919621b8dd | [log] [tgz] |
---|---|---|
author | Dan Albert <danalbert@google.com> | Mon Sep 22 23:01:12 2014 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Mon Sep 22 23:01:12 2014 +0000 |
tree | 259003bc890427c4bf689d92bf97f56306c2d2c9 | |
parent | 810814d09b7e4da9744fc5991ee49b9d8e7c9755 [diff] | |
parent | 5c957e2d4ffedb32a5ee5436a5ade3ee04f48230 [diff] |
Merge "Fix warning for uninitialized variable."
diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c index 74232e6..f2c9da7 100644 --- a/fastbootd/commands/partitions.c +++ b/fastbootd/commands/partitions.c
@@ -547,7 +547,8 @@ int GPT_parse_entry(char *string, struct GPT_entry_raw *entry) { char *ptr = string; - char *key, *value; + char *key = NULL; + char *value = NULL; while ((ptr = get_key_value(ptr, &key, &value)) != NULL) { if (add_key_value(key, value, entry)) {