[gnome-keyring] Fix checking of uninitialized value in prompting code.



commit 453c143338895bdd094c9398e8ef336d0f8cba8e
Author: Nshepperd <nshepperd gmail com>
Date:   Wed May 5 14:30:01 2010 +0000

    Fix checking of uninitialized value in prompting code.
    
    Fixes problem repeatedly asking for password to unlock. See
    bug #616071

 daemon/prompt/gkd-prompt.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/prompt/gkd-prompt.c b/daemon/prompt/gkd-prompt.c
index a4ea7fc..645255a 100644
--- a/daemon/prompt/gkd-prompt.c
+++ b/daemon/prompt/gkd-prompt.c
@@ -796,7 +796,7 @@ gkd_prompt_get_transport_param (GkdPrompt *self, const gchar *name, gsize *n_val
 {
 	g_return_val_if_fail (GKD_IS_PROMPT (self), NULL);
 	g_return_val_if_fail (name, NULL);
-	g_return_val_if_fail (*n_value, NULL);
+	g_return_val_if_fail (n_value, NULL);
 
 	if (self->pv->failure)
 		return NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]