1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 02:21:44 +03:00

sd-bus: add extra assert check

This commit is contained in:
Lennart Poettering 2014-12-04 20:30:46 +01:00
parent ebf4e8013b
commit 3e49a3a063

View 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;