summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-error.c
diff options
context:
space:
mode:
authorLukasz Skalski <l.skalski@partner.samsung.com>2013-12-09 14:09:25 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-12-09 23:27:19 -0500
commitf7e2bd5a8070ba86cba6bcbf7d1c9a8173d846d4 (patch)
treedcb3ed2b03e2d98a663adadc52a1de6c09e50d76 /src/libsystemd-bus/bus-error.c
parentd838db0d3b1369639ed7572f4f838eda58b8d858 (diff)
libsystemd-bus: use assert_return
Diffstat (limited to 'src/libsystemd-bus/bus-error.c')
-rw-r--r--src/libsystemd-bus/bus-error.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsystemd-bus/bus-error.c b/src/libsystemd-bus/bus-error.c
index 25eaf0eee4..4f18629758 100644
--- a/src/libsystemd-bus/bus-error.c
+++ b/src/libsystemd-bus/bus-error.c
@@ -39,8 +39,7 @@ static int bus_error_name_to_errno(const char *name) {
const char *p;
int r;
- if (!name)
- return EINVAL;
+ assert_return(name, EINVAL);
p = startswith(name, "System.Error.");
if (p) {