diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-10-28 10:52:25 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> | 2011-11-01 06:23:48 +0000 |
commit | d0bc5bc3aac64be2c0b91f1446ed748444cc3141 (patch) | |
tree | 7126a76f17ed7defe50b822d07e2da629051f0cf | |
parent | 93a7320e32a2b7463c4dc3cfb5a0c77c46d8e687 (diff) | |
download | qemu-d0bc5bc3aac64be2c0b91f1446ed748444cc3141.tar.gz qemu-d0bc5bc3aac64be2c0b91f1446ed748444cc3141.tar.bz2 qemu-d0bc5bc3aac64be2c0b91f1446ed748444cc3141.zip |
sysbus: Supply missing va_end()
C99 7.15.1: Each invocation of the va_start and va_copy macros shall
be matched by a corresponding invocation of the va_end macro in the
same function.
Spotted by Coverity. Harmless on the (common) systems where va_end()
does nothing.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rw-r--r-- | hw/sysbus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/sysbus.c b/hw/sysbus.c index 4fab5a41b2..fd2fc6a51d 100644 --- a/hw/sysbus.c +++ b/hw/sysbus.c @@ -198,6 +198,7 @@ DeviceState *sysbus_create_varargs(const char *name, sysbus_connect_irq(s, n, irq); n++; } + va_end(va); return dev; } @@ -229,6 +230,7 @@ DeviceState *sysbus_try_create_varargs(const char *name, sysbus_connect_irq(s, n, irq); n++; } + va_end(va); return dev; } |