From 244587ea41d4c75cb5570356f09a6705864a7e8d Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 30 Aug 2013 10:28:26 +0200 Subject: scd: Suppress gcc warning about possible uninitialized use. * scd/app-nks.c (parse_pwidstr): Always init r_pwid. Signed-off-by: Werner Koch --- scd/app-nks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scd') diff --git a/scd/app-nks.c b/scd/app-nks.c index c83217fd0..19a33ed12 100644 --- a/scd/app-nks.c +++ b/scd/app-nks.c @@ -1125,7 +1125,10 @@ parse_pwidstr (const char *pwidstr, int new_mode, int *r_sigg, int *r_pwid) "for the key to create qualified signatures.")); } else - desc = NULL; + { + *r_pwid = 0; /* Only to avoid gcc warning in calling function. */ + desc = NULL; /* Error. */ + } return desc; } -- cgit v1.2.3