mirror of
https://github.com/tmux/tmux.git
synced 2025-09-02 05:21:10 +00:00
Couple of assignments to remove compiler warnings.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user