diff --git a/src/tkc/func_call_parser.c b/src/tkc/func_call_parser.c index 10c2cccbe..3b1e6ed54 100644 --- a/src/tkc/func_call_parser.c +++ b/src/tkc/func_call_parser.c @@ -50,7 +50,7 @@ ret_t func_call_parser_parse(func_call_parser_t* parser) { token = tokenizer_next(tokenizer); tk_strncpy(name, token, TK_NAME_LEN); - ENSURE(tokenizer_has_more(tokenizer)); + return_value_if_fail(tokenizer_has_more(tokenizer), RET_BAD_PARAMS); token = tokenizer_next(tokenizer); if (parser->on_param != NULL) {