diff options
author | Jakub Jelen <jjelen@redhat.com> | 2019-12-16 16:32:59 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-01-23 09:49:07 +0100 |
commit | ec8cedd80303b9261f386ee7c30cf64308789c09 (patch) | |
tree | e101a8be5b312034661ab31a01874c4cf312da38 | |
parent | 92124ae65a15721ea546043141344d1cd437cb99 (diff) | |
download | libssh-ec8cedd80303b9261f386ee7c30cf64308789c09.tar.gz libssh-ec8cedd80303b9261f386ee7c30cf64308789c09.tar.xz libssh-ec8cedd80303b9261f386ee7c30cf64308789c09.zip |
options: Avoid needless assignment as reported by csbuild
The error was
src/options.c:971:13: warning: Value stored to 'u' is never read
# u = 0;
# ^ ~
src/options.c:971:13: note: Value stored to 'u' is never read
# u = 0;
# ^ ~
# 969| case SSH_OPTIONS_KBDINT_AUTH:
# 970| case SSH_OPTIONS_GSSAPI_AUTH:
# 971|-> u = 0;
# 972| if (value == NULL) {
# 973| ssh_set_error_invalid(session);
Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit 30cc1568f402ef411e54570d94b612ccbb59d4f8)
-rw-r--r-- | src/options.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/options.c b/src/options.c index 8d8688f3..b5f951ac 100644 --- a/src/options.c +++ b/src/options.c @@ -968,7 +968,6 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, case SSH_OPTIONS_PUBKEY_AUTH: case SSH_OPTIONS_KBDINT_AUTH: case SSH_OPTIONS_GSSAPI_AUTH: - u = 0; if (value == NULL) { ssh_set_error_invalid(session); return -1; |