history: fix memory leak
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user