summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-message.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-03-20 13:10:12 +0100
committerLennart Poettering <lennart@poettering.net>2013-03-20 23:00:10 +0100
commitfbfa72b0a1276366d50dce223c06efe9db9d6585 (patch)
tree72fcc96368e8c49693ca04353df06848f261ff84 /src/libsystemd-bus/bus-message.c
parent80a46c7313b8fc4682881cb3a2ca9e4d743fcb2b (diff)
bus: introduce bus_error_is_dirty() independently of sd_bus_error_is_set()
Diffstat (limited to 'src/libsystemd-bus/bus-message.c')
-rw-r--r--src/libsystemd-bus/bus-message.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libsystemd-bus/bus-message.c b/src/libsystemd-bus/bus-message.c
index a1bae4d1a7..5f3dbdb75d 100644
--- a/src/libsystemd-bus/bus-message.c
+++ b/src/libsystemd-bus/bus-message.c
@@ -447,9 +447,7 @@ int sd_bus_message_new_method_error(
sd_bus_message *t;
int r;
- if (!e)
- return -EINVAL;
- if (!e->name)
+ if (!sd_bus_error_is_set(e))
return -EINVAL;
if (!m)
return -EINVAL;