diff options
author | Dan Albert <danalbert@google.com> | 2014-09-22 23:01:12 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-09-22 23:01:12 +0000 |
commit | fbe58079b4ac12462f1ad7a23ff745919621b8dd (patch) | |
tree | 259003bc890427c4bf689d92bf97f56306c2d2c9 | |
parent | 810814d09b7e4da9744fc5991ee49b9d8e7c9755 (diff) | |
parent | 5c957e2d4ffedb32a5ee5436a5ade3ee04f48230 (diff) | |
download | system_core-fbe58079b4ac12462f1ad7a23ff745919621b8dd.zip system_core-fbe58079b4ac12462f1ad7a23ff745919621b8dd.tar.gz system_core-fbe58079b4ac12462f1ad7a23ff745919621b8dd.tar.bz2 |
Merge "Fix warning for uninitialized variable."
-rw-r--r-- | fastbootd/commands/partitions.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 @@ error: 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)) { |