projects
/
platform
/
upstream
/
libsecret.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26326a7
)
secret-tool: Don't read uninitialized variable on error path
author
Colin Walters
<walters@verbum.org>
Mon, 25 Jun 2012 22:22:20 +0000
(18:22 -0400)
committer
Colin Walters
<walters@verbum.org>
Mon, 25 Jun 2012 22:22:20 +0000
(18:22 -0400)
tool/secret-tool.c
patch
|
blob
|
history
diff --git
a/tool/secret-tool.c
b/tool/secret-tool.c
index
735da93
..
80226ce
100644
(file)
--- 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);