va_end()
Each invocation of va_start() must be matched by a corresponding invocation of
va_end() in the same function. After the call va_end(ap) the variable ap is unde‐
fined. Multiple traversals of the list, each bracketed by va_start() and va_end()
are possible. va_end() may be a macro or a function.
In the _gu_db_doprnt_ function the va_end is called on the already undefined args variable, which can cause undefined behavior. This PR proposes to remove one va_end(args) call.
From
man va_end
:In the
_gu_db_doprnt_
function theva_end
is called on the already undefinedargs
variable, which can cause undefined behavior. This PR proposes to remove oneva_end(args)
call.