From 88d331d5371860216a9ba1d8d30c3add352f36e5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 5 Apr 2013 14:48:20 +0200 Subject: [PATCH] bus: when parsing signature strings, accept NULL as empty signature --- src/libsystemd-bus/bus-message.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c index 7acab509793..2d051e8aeb9 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) {