mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-05-07 01:48:00 +02:00
Add a few missing va_end
Found by gcc -fanalyze
This commit is contained in:
parent
37cc857a52
commit
bf03c56300
2 changed files with 4 additions and 0 deletions
|
|
@ -305,6 +305,7 @@ ei_seat_bind_capabilities(struct ei_seat *seat, ...)
|
|||
while ((cap = va_arg(args, enum ei_device_capability)) > 0) {
|
||||
mask_add(mask,ei_seat_cap_mask(seat, cap));
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
if (seat->capabilities.bound == mask)
|
||||
return;
|
||||
|
|
@ -332,6 +333,7 @@ ei_seat_unbind_capabilities(struct ei_seat *seat, ...)
|
|||
while ((cap = va_arg(args, enum ei_device_capability)) > 0) {
|
||||
mask_remove(mask, ei_seat_cap_mask(seat, cap));
|
||||
}
|
||||
va_end(args);
|
||||
|
||||
if (seat->capabilities.bound == mask)
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -64,6 +64,8 @@ signals_block(int signal, ...)
|
|||
}
|
||||
sigprocmask(SIG_BLOCK, &new_mask, &old_mask);
|
||||
|
||||
va_end(sigs);
|
||||
|
||||
return old_mask;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue