mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
config: Fix build warning
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -218,10 +218,11 @@ static int ssh_config_parse_line(ssh_session session, const char *line,
|
|||||||
opcode = ssh_config_get_opcode(keyword);
|
opcode = ssh_config_get_opcode(keyword);
|
||||||
|
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
case SOC_HOST:
|
case SOC_HOST: {
|
||||||
|
int ok = 0;
|
||||||
|
|
||||||
*parsing = 0;
|
*parsing = 0;
|
||||||
lowerhost = (session->opts.host) ? ssh_lowercase(session->opts.host) : NULL;
|
lowerhost = (session->opts.host) ? ssh_lowercase(session->opts.host) : NULL;
|
||||||
int ok = 0;
|
|
||||||
for (p = ssh_config_get_str_tok(&s, NULL);
|
for (p = ssh_config_get_str_tok(&s, NULL);
|
||||||
p != NULL && p[0] != '\0';
|
p != NULL && p[0] != '\0';
|
||||||
p = ssh_config_get_str_tok(&s, NULL)) {
|
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);
|
SAFE_FREE(lowerhost);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case SOC_HOSTNAME:
|
case SOC_HOSTNAME:
|
||||||
p = ssh_config_get_str_tok(&s, NULL);
|
p = ssh_config_get_str_tok(&s, NULL);
|
||||||
if (p && *parsing) {
|
if (p && *parsing) {
|
||||||
|
|||||||
Reference in New Issue
Block a user