history: fix memory leak

This commit is contained in:
2024-04-14 12:28:27 +02:00
parent e7ea706157
commit df2129a1bb
3 changed files with 7 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ int CMDList_add(CMDList_t *list, CMD_t* cmd, char* cmdName)
read_p = cmd->cmd;
}
while (returnCode == 0)
while (returnCode >= 0)
{
char c = *read_p & (~0x20); // convert to uppercase
if ((c >= 'A') && (c <= 'Z'))