diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-05-04 14:38:48 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-05-04 14:38:48 +0200 |
commit | 5c70dd8b85f61d234dcf518c967593ba54379943 (patch) | |
tree | db2c8330256eae339ca120f74215d59225e25935 | |
parent | d5068ed07dfa58f22ffc4b9a86c8fbd815f9e049 (diff) | |
download | libssh-5c70dd8b85f61d234dcf518c967593ba54379943.tar.gz libssh-5c70dd8b85f61d234dcf518c967593ba54379943.tar.xz libssh-5c70dd8b85f61d234dcf518c967593ba54379943.zip |
config: Fix build warnings
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | src/config.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index edbaf80c..2ae29d1e 100644 --- a/src/config.c +++ b/src/config.c @@ -218,10 +218,11 @@ static int ssh_config_parse_line(ssh_session session, const char *line, opcode = ssh_config_get_opcode(keyword); switch (opcode) { - case SOC_HOST: + case SOC_HOST: { + int ok = 0; + *parsing = 0; lowerhost = (session->opts.host) ? ssh_lowercase(session->opts.host) : NULL; - int ok = 0; for (p = ssh_config_get_str_tok(&s, NULL); p != NULL && p[0] != '\0'; p = ssh_config_get_str_tok(&s, NULL)) { @@ -242,6 +243,7 @@ static int ssh_config_parse_line(ssh_session session, const char *line, } SAFE_FREE(lowerhost); break; + } case SOC_HOSTNAME: p = ssh_config_get_str_tok(&s, NULL); if (p && *parsing) { |