diff --git a/pdclib/functions/_PDCLIB/stdarg.c b/pdclib/functions/_PDCLIB/stdarg.c index 9e43be6..97ac7e9 100644 --- a/pdclib/functions/_PDCLIB/stdarg.c +++ b/pdclib/functions/_PDCLIB/stdarg.c @@ -92,11 +92,14 @@ static int test( enum tag_t s, ... ) } case TAG_END: { - va_end( ap ); - return 0; + goto cleanup; } } } + +cleanup: + va_end( ap ); + return 0; } int main( void )