diff options
author | Jakub Jelen <jjelen@redhat.com> | 2019-12-16 16:32:59 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-12-23 14:31:32 +0100 |
commit | 30cc1568f402ef411e54570d94b612ccbb59d4f8 (patch) | |
tree | 1a197c23cbe6402897fb38a8325506ada8e29a68 /src/options.c | |
parent | 8eda4165cf43be5260ce7ad0a106a8818b9ddcc0 (diff) | |
download | libssh-30cc1568f402ef411e54570d94b612ccbb59d4f8.tar.gz libssh-30cc1568f402ef411e54570d94b612ccbb59d4f8.tar.xz libssh-30cc1568f402ef411e54570d94b612ccbb59d4f8.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>
Diffstat (limited to 'src/options.c')
-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; |