[systemd-commits] src/libsystemd
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Fri May 16 15:03:19 PDT 2014
src/libsystemd/sd-bus/bus-objects.c | 2 +-
src/libsystemd/sd-bus/sd-bus.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 2915234da0c9f2f8727d91f04857e7b72d6721a9
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu May 15 23:27:59 2014 -0400
bus: fix unitialized variable access in error path
diff --git a/src/libsystemd/sd-bus/bus-objects.c b/src/libsystemd/sd-bus/bus-objects.c
index 51d4a62..dbb04e5 100644
--- a/src/libsystemd/sd-bus/bus-objects.c
+++ b/src/libsystemd/sd-bus/bus-objects.c
@@ -1602,7 +1602,7 @@ static int add_object_vtable_internal(
sd_bus_object_find_t find,
void *userdata) {
- sd_bus_slot *s;
+ sd_bus_slot *s = NULL;
struct node_vtable *i, *existing = NULL;
const sd_bus_vtable *v;
struct node *n;
diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
index ec2843f..1f1a4d3 100644
--- a/src/libsystemd/sd-bus/sd-bus.c
+++ b/src/libsystemd/sd-bus/sd-bus.c
@@ -2821,7 +2821,7 @@ _public_ int sd_bus_add_match(
struct bus_match_component *components = NULL;
unsigned n_components = 0;
- sd_bus_slot *s;
+ sd_bus_slot *s = NULL;
int r = 0;
assert_return(bus, -EINVAL);
More information about the systemd-commits
mailing list