Skip to content

Commit

Permalink
xtensa: ISS: add missing va_end into split_if_spec
Browse files Browse the repository at this point in the history
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
  • Loading branch information
Max Filippov committed Jul 13, 2015
1 parent bc0195a commit 72ce678
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/xtensa/platforms/iss/network.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 72ce678

Please sign in to comment.