[at-spi2-core/gnome-3-40] registryd: call va_end before leaving
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-3-40] registryd: call va_end before leaving
- Date: Sat, 22 May 2021 15:40:26 +0000 (UTC)
commit a5ed3476258200b67e062bddbf42f57b16b7df04
Author: Shinwoo Kim <cinoo kim samsung com>
Date: Fri May 14 18:19:03 2021 +0900
registryd: call va_end before leaving
This patch is removing mission 'va_end'.
registryd/de-marshaller.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/registryd/de-marshaller.c b/registryd/de-marshaller.c
index 2f212b0..f109484 100644
--- a/registryd/de-marshaller.c
+++ b/registryd/de-marshaller.c
@@ -70,7 +70,11 @@ dbus_bool_t spi_dbus_message_iter_append_struct(DBusMessageIter *iter, ...)
ptr = va_arg(args, void *);
dbus_message_iter_append_basic(&iter_struct, type, ptr);
}
- if (!dbus_message_iter_close_container(iter, &iter_struct)) return FALSE;
+ if (!dbus_message_iter_close_container(iter, &iter_struct))
+ {
+ va_end(args);
+ return FALSE;
+ }
va_end(args);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]