提交 72ce6787 编写于 作者: M Max Filippov

xtensa: ISS: add missing va_end into split_if_spec

Reported-by: NDavid Binderman <dcb314@hotmail.com>
Signed-off-by: NMax Filippov <jcmvbkbc@gmail.com>
上级 bc0195aa
......@@ -105,13 +105,17 @@ static char *split_if_spec(char *str, ...)
va_start(ap, str);
while ((arg = va_arg(ap, char**)) != NULL) {
if (*str == '\0')
if (*str == '\0') {
va_end(ap);
return NULL;
}
end = strchr(str, ',');
if (end != str)
*arg = str;
if (end == NULL)
if (end == NULL) {
va_end(ap);
return NULL;
}
*end++ = '\0';
str = end;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册