Bugfix: Fix null pointer access in temp profile parser
This commit is contained in:
parent
c78477296a
commit
0dace23021
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user