secret-tool: Don't read uninitialized variable on error path

This commit is contained in:
Colin Walters 2012-06-25 18:22:20 -04:00
parent 26326a7c8b
commit 8e68f748c3

View File

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