Bugfix: Fix null pointer access in temp profile parser

This commit is contained in:
Mario Hüttel 2021-11-27 19:24:51 +01:00
parent c78477296a
commit 0dace23021
1 changed files with 4 additions and 0 deletions

View File

@ -141,6 +141,10 @@ static int parse_line(char *line, struct pl_command *cmd)
switch (token_idx) {
case 0:
map = string_to_command(token);
if (!map) {
/* No valid command found */
return -1;
}
c.cmd = map->command;
break;
default: