From 5c957e2d4ffedb32a5ee5436a5ade3ee04f48230 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Mon, 22 Sep 2014 15:26:39 -0700 Subject: [PATCH] Fix warning for uninitialized variable. Change-Id: I78e6a20562419dcc2fb3f579089b32aeb5538f8b --- fastbootd/commands/partitions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fastbootd/commands/partitions.c b/fastbootd/commands/partitions.c index 74232e6ff..f2c9da73c 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)) {