Remove unnecessary va_end
va_end must be called before the function returns, but errx is noreturn.weechat-hashes
parent
1a9ae050d6
commit
b740e937df
5
handle.c
5
handle.c
|
@ -58,10 +58,7 @@ static void shift(
|
|||
va_list ap;
|
||||
va_start(ap, opt);
|
||||
for (size_t i = 0; i < req; ++i) {
|
||||
if (!params) {
|
||||
va_end(ap);
|
||||
errx(EX_PROTOCOL, "%zu params required, found %zu", req, i);
|
||||
}
|
||||
if (!params) errx(EX_PROTOCOL, "%zu params required, found %zu", req, i);
|
||||
field = paramField(¶ms);
|
||||
char **param = va_arg(ap, char **);
|
||||
if (param) *param = field;
|
||||
|
|
Loading…
Reference in New Issue