diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-04-05 14:48:20 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-04-05 14:56:48 +0200 |
commit | 88d331d5371860216a9ba1d8d30c3add352f36e5 (patch) | |
tree | 85883cdf12f98274ceaf742136fc99ce07023fea /src/libsystemd-bus/bus-message.c | |
parent | eba8617efc5ed1410acb14bee41433adac7011e2 (diff) |
bus: when parsing signature strings, accept NULL as empty signature
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r-- | src/libsystemd-bus/bus-message.c | 4 |
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) { |