chiark / gitweb /
sd-bus: add extra assert check
authorLennart Poettering <lennart@poettering.net>
Thu, 4 Dec 2014 19:30:46 +0000 (20:30 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 4 Dec 2014 19:30:46 +0000 (20:30 +0100)
src/libsystemd/sd-bus/bus-message.c

index 2c85130..ec3a39d 100644 (file)
@@ -2063,6 +2063,7 @@ static int bus_message_close_variant(sd_bus_message *m, struct bus_container *c)
 
         assert(m);
         assert(c);
+        assert(c->signature);
 
         if (!BUS_MESSAGE_IS_GVARIANT(m))
                 return 0;