mirror of
https://github.com/ElementsProject/lightning.git
synced 2026-08-19 13:17:42 +02:00
Add missing call to va_end()
Each invocation of va_start() must be matched by a corresponding invocation of va_end() in the same function.
This commit is contained in:
parent
c6b5e72e3b
commit
aae991f28d
1 changed files with 3 additions and 1 deletions
|
|
@ -264,8 +264,10 @@ bool json_get_params(const char *buffer, const jsmntok_t param[], ...)
|
|||
&& buffer[(*tokptr)->start] == 'n') {
|
||||
*tokptr = NULL;
|
||||
}
|
||||
if (compulsory && !*tokptr)
|
||||
if (compulsory && !*tokptr) {
|
||||
va_end(ap);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
va_end(ap);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue