chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bus: always pass valid timeout to kdbus
[elogind.git]
/
src
/
libsystemd-bus
/
bus-error.c
diff --git
a/src/libsystemd-bus/bus-error.c
b/src/libsystemd-bus/bus-error.c
index 4f1862975882e71c7c7a4cfddc4287dcbee9f0df..25eaf0eee4961563535afc95b55e1ced63145169 100644
(file)
--- a/
src/libsystemd-bus/bus-error.c
+++ b/
src/libsystemd-bus/bus-error.c
@@
-39,7
+39,8
@@
static int bus_error_name_to_errno(const char *name) {
const char *p;
int r;
- assert_return(name, EINVAL);
+ if (!name)
+ return EINVAL;
p = startswith(name, "System.Error.");
if (p) {