chiark / gitweb /
bus: fix unitialized variable access in error path
[elogind.git] / src / libsystemd / sd-bus / sd-bus.c
index ec2843ff73fda36b44ed10bb235dfcbcb2865bef..1f1a4d3a1425f2830ff82b0c64f5bd0518dbc530 100644 (file)
@@ -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);