Couple of assignments to remove compiler warnings.

pull/210/head
nicm 2015-11-14 10:57:59 +00:00
parent 64333e3ef8
commit dab63b029e
2 changed files with 2 additions and 0 deletions

View File

@ -176,6 +176,7 @@ key_string_lookup_string(const char *string)
if (utf8_open(&ud, (u_char)*string)) {
if (strlen(string) != ud.size)
return (KEYC_NONE);
more = 1;
for (i = 1; i < ud.size; i++)
more = utf8_append(&ud, (u_char)string[i]);
if (more != 0)

View File

@ -546,6 +546,7 @@ first_key:
goto discard_key;
goto partial_key;
}
more = 1;
for (i = 1; i < size; i++)
more = utf8_append(&ud, (u_char)buf[i]);
if (more != 0)