Fix warning for uninitialized variable.

Change-Id: I78e6a20562419dcc2fb3f579089b32aeb5538f8b
This commit is contained in:
Dan Albert 2014-09-22 15:26:39 -07:00
parent 810814d09b
commit 5c957e2d4f
1 changed files with 2 additions and 1 deletions

View File

@ -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)) {