mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01: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
@ -264,9 +264,11 @@ bool json_get_params(const char *buffer, const jsmntok_t param[], ...)
|
|||||||
&& buffer[(*tokptr)->start] == 'n') {
|
&& buffer[(*tokptr)->start] == 'n') {
|
||||||
*tokptr = NULL;
|
*tokptr = NULL;
|
||||||
}
|
}
|
||||||
if (compulsory && !*tokptr)
|
if (compulsory && !*tokptr) {
|
||||||
|
va_end(ap);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user