summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-06-25 18:22:20 -0400
committerColin Walters <walters@verbum.org>2012-06-25 18:22:20 -0400
commit8e68f748c3df4a41f55f86cc455656964754addd (patch)
tree2be741d9ed313624c9a2a38890b75a2e2033dd16 /tool
parent26326a7c8b6700bd36404691a2901030a3005a51 (diff)
downloadlibsecret-8e68f748c3df4a41f55f86cc455656964754addd.tar.gz
secret-tool: Don't read uninitialized variable on error path
Diffstat (limited to 'tool')
-rw-r--r--tool/secret-tool.c2
1 files changed, 1 insertions, 1 deletions
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);