From 88d331d5371860216a9ba1d8d30c3add352f36e5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 5 Apr 2013 14:48:20 +0200 Subject: bus: when parsing signature strings, accept NULL as empty signature --- src/libsystemd-bus/bus-message.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libsystemd-bus') 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) { -- cgit v1.2.3-54-g00ecf