chiark / gitweb /
bus: when parsing signature strings, accept NULL as empty signature
authorLennart Poettering <lennart@poettering.net>
Fri, 5 Apr 2013 12:48:20 +0000 (14:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 5 Apr 2013 12:56:48 +0000 (14:56 +0200)
src/libsystemd-bus/bus-message.c

index 7acab50..2d051e8 100644 (file)
@@ -1250,7 +1250,9 @@ int bus_message_append_ap(
         int r;
 
         assert(m);
-        assert(types);
+
+        if (!types)
+                return 0;
 
         for (t = types; *t; t++) {
                 switch (*t) {