[libsecret] secret-tool: Don't read uninitialized variable on error path
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsecret] secret-tool: Don't read uninitialized variable on error path
- Date: Mon, 25 Jun 2012 22:23:00 +0000 (UTC)
commit 8e68f748c3df4a41f55f86cc455656964754addd
Author: Colin Walters <walters verbum org>
Date: Mon Jun 25 18:22:20 2012 -0400
secret-tool: Don't read uninitialized variable on error path
tool/secret-tool.c | 2 +-
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]