client: check for allocation errors in tab completition

This commit is contained in:
Miroslav Lichvar 2023-06-08 16:04:21 +02:00
parent c11a052955
commit 8265fe2e30

View file

@ -1167,7 +1167,7 @@ command_name_generator(const char *text, int state)
while ((name = names[tab_complete_index][list_index++])) {
if (strncmp(name, text, len) == 0) {
return strdup(name);
return Strdup(name);
}
}