summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-05 14:47:49 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-05 14:56:48 +0200
commiteba8617efc5ed1410acb14bee41433adac7011e2 (patch)
tree99f1c7436def049d28cca6d2830f4e7d83b5bf7b /src
parent2034ec42ec9e18db1ec908c87bb7c24cc63d2412 (diff)
bus: make sure callback structs are always properly initialized
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd-bus/sd-bus.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libsystemd-bus/sd-bus.c b/src/libsystemd-bus/sd-bus.c
index 0b71f3ea54..fde39e0cac 100644
--- a/src/libsystemd-bus/sd-bus.c
+++ b/src/libsystemd-bus/sd-bus.c
@@ -1167,7 +1167,7 @@ int sd_bus_send_with_reply(
if (r < 0)
return r;
- c = new(struct reply_callback, 1);
+ c = new0(struct reply_callback, 1);
if (!c)
return -ENOMEM;
@@ -2036,7 +2036,7 @@ int sd_bus_add_filter(sd_bus *bus, sd_bus_message_handler_t callback, void *user
if (!callback)
return -EINVAL;
- f = new(struct filter_callback, 1);
+ f = new0(struct filter_callback, 1);
if (!f)
return -ENOMEM;
f->callback = callback;
@@ -2088,7 +2088,7 @@ static int bus_add_object(
if (r < 0)
return r;
- c = new(struct object_callback, 1);
+ c = new0(struct object_callback, 1);
if (!c)
return -ENOMEM;