mirror of
https://github.com/tmate-io/tmate-ssh-server.git
synced 2020-11-18 19:53:51 -08:00
Couple of assignments to remove compiler warnings.
This commit is contained in:
parent
64333e3ef8
commit
dab63b029e
@ -176,6 +176,7 @@ key_string_lookup_string(const char *string)
|
|||||||
if (utf8_open(&ud, (u_char)*string)) {
|
if (utf8_open(&ud, (u_char)*string)) {
|
||||||
if (strlen(string) != ud.size)
|
if (strlen(string) != ud.size)
|
||||||
return (KEYC_NONE);
|
return (KEYC_NONE);
|
||||||
|
more = 1;
|
||||||
for (i = 1; i < ud.size; i++)
|
for (i = 1; i < ud.size; i++)
|
||||||
more = utf8_append(&ud, (u_char)string[i]);
|
more = utf8_append(&ud, (u_char)string[i]);
|
||||||
if (more != 0)
|
if (more != 0)
|
||||||
|
@ -546,6 +546,7 @@ first_key:
|
|||||||
goto discard_key;
|
goto discard_key;
|
||||||
goto partial_key;
|
goto partial_key;
|
||||||
}
|
}
|
||||||
|
more = 1;
|
||||||
for (i = 1; i < size; i++)
|
for (i = 1; i < size; i++)
|
||||||
more = utf8_append(&ud, (u_char)buf[i]);
|
more = utf8_append(&ud, (u_char)buf[i]);
|
||||||
if (more != 0)
|
if (more != 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user