Fix warning in temp profile parser
This commit is contained in:
		@@ -106,7 +106,7 @@ static int parse_line(char *line, struct pl_command *cmd)
 | 
			
		||||
	uint8_t token_idx = 0;
 | 
			
		||||
	char *token;
 | 
			
		||||
	const char * const delim = " \t";
 | 
			
		||||
	const struct pl_command_list_map *map;
 | 
			
		||||
	const struct pl_command_list_map *map = NULL;
 | 
			
		||||
	char *endptr;
 | 
			
		||||
	struct pl_command c;
 | 
			
		||||
 | 
			
		||||
@@ -146,7 +146,7 @@ static int parse_line(char *line, struct pl_command *cmd)
 | 
			
		||||
		token_idx++;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if (token_idx - 1 < map->expected_param_count) {
 | 
			
		||||
	if (!map || (token_idx - 1 < map->expected_param_count)) {
 | 
			
		||||
		return -3;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user