summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-04-05 14:48:20 +0200
committerLennart Poettering <lennart@poettering.net>2013-04-05 14:56:48 +0200
commit88d331d5371860216a9ba1d8d30c3add352f36e5 (patch)
tree85883cdf12f98274ceaf742136fc99ce07023fea
parenteba8617efc5ed1410acb14bee41433adac7011e2 (diff)
bus: when parsing signature strings, accept NULL as empty signature
-rw-r--r--src/libsystemd-bus/bus-message.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index 7acab50979..2d051e8aeb 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -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) {