diff options
author | Werner Koch <wk@gnupg.org> | 2016-01-07 19:01:18 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-01-07 19:09:16 +0100 |
commit | 008aa6e6d4b213c3a0d15509eb46cf168b6f2c94 (patch) | |
tree | 108e4e0d20a00d780fe864b1d40c2890cb9d9527 /g10/armor.c | |
parent | sm: Avoid warnings about useless assignments. (diff) | |
download | gnupg2-008aa6e6d4b213c3a0d15509eb46cf168b6f2c94.tar.xz gnupg2-008aa6e6d4b213c3a0d15509eb46cf168b6f2c94.zip |
gpg: Fix warnings about useless assignments.
* g10/armor.c (parse_hash_header): Remove duplicate var assignment.
* g10/getkey.c (cache_user_id): Ditto.
* g10/keygen.c (ask_curve): Ditto. This also fixes a small memory
leak.
* g10/keygen.c (proc_parameter_file): Remove useless assignment or
pointer increment.
(generate_keypair): Ditto.
* g10/getkey.c (finish_lookup, lookup): Ditto.
* g10/card-util.c (change_pin): Ditto.
* g10/gpg.c (main) <aVerify>: Ditto.
* g10/import.c (import): Ditto.
(print_import_check): Ditto
* g10/keyring.c (do_copy): Ditto.
* g10/tdbio.c (tdbio_read_record): Ditto.
* g10/trustdb.c (tdb_update_ownertrust): Ditto.
(update_validity): Ditto.
* g10/server.c (cmd_passwd): Remove useless call to skip_options.
--
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'g10/armor.c')
-rw-r--r-- | g10/armor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/armor.c b/g10/armor.c index e36866009..6c133a2d9 100644 --- a/g10/armor.c +++ b/g10/armor.c @@ -274,7 +274,7 @@ parse_hash_header( const char *line ) return 0; /* too short or too long */ if( memcmp( line, "Hash:", 5 ) ) return 0; /* invalid header */ - s = line+5; + for(s=line+5;;s=s2) { for(; *s && (*s==' ' || *s == '\t'); s++ ) ; |