mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-11 16:39:33 +00:00
lib: Fix missing va_end
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
c2a2f37b65
commit
d06542d566
@ -284,8 +284,11 @@ csv_record_t *csv_encode_record(csv_t *csv, csv_record_t *rec, int count, ...)
|
||||
|
||||
va_start(list, count);
|
||||
str = csv_field_iter(rec, &fld);
|
||||
if (!fld)
|
||||
if (!fld) {
|
||||
va_end(list);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
for (tempc = 0; tempc < count; tempc++) {
|
||||
col = va_arg(list, char *);
|
||||
for (i = 0; i < fld->field_len; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user