mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 02:28:53 +00:00
secret-tool: Don't read uninitialized variable on error path
This commit is contained in:
parent
26326a7c8b
commit
8e68f748c3
@ -189,7 +189,7 @@ secret_tool_action_lookup (int argc,
|
|||||||
GOptionContext *context;
|
GOptionContext *context;
|
||||||
SecretService *service;
|
SecretService *service;
|
||||||
GHashTable *attributes;
|
GHashTable *attributes;
|
||||||
SecretValue *value;
|
SecretValue *value = NULL;
|
||||||
|
|
||||||
context = g_option_context_new ("attribute value ...");
|
context = g_option_context_new ("attribute value ...");
|
||||||
g_option_context_add_main_entries (context, LOOKUP_OPTIONS, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (context, LOOKUP_OPTIONS, GETTEXT_PACKAGE);
|
||||||
|
Loading…
Reference in New Issue
Block a user