From: Colin Walters Date: Mon, 25 Jun 2012 22:22:20 +0000 (-0400) Subject: secret-tool: Don't read uninitialized variable on error path X-Git-Tag: upstream/0.13~132 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e68f748c3df4a41f55f86cc455656964754addd;p=platform%2Fupstream%2Flibsecret.git secret-tool: Don't read uninitialized variable on error path --- diff --git a/tool/secret-tool.c b/tool/secret-tool.c index 735da93..80226ce 100644 --- a/tool/secret-tool.c +++ b/tool/secret-tool.c @@ -189,7 +189,7 @@ secret_tool_action_lookup (int argc, GOptionContext *context; SecretService *service; GHashTable *attributes; - SecretValue *value; + SecretValue *value = NULL; context = g_option_context_new ("attribute value ..."); g_option_context_add_main_entries (context, LOOKUP_OPTIONS, GETTEXT_PACKAGE);