diff options
author | Werner Koch <[email protected]> | 2013-08-30 08:28:26 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-08-30 08:28:26 +0000 |
commit | 244587ea41d4c75cb5570356f09a6705864a7e8d (patch) | |
tree | f7ad7712352445f46dca48a114fd81e7b8b83219 /scd/app-nks.c | |
parent | gpg: Use 2048 as the default keysize in batch mode. (diff) | |
download | gnupg-244587ea41d4c75cb5570356f09a6705864a7e8d.tar.gz gnupg-244587ea41d4c75cb5570356f09a6705864a7e8d.zip |
scd: Suppress gcc warning about possible uninitialized use.
* scd/app-nks.c (parse_pwidstr): Always init r_pwid.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'scd/app-nks.c')
-rw-r--r-- | scd/app-nks.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |