chiark / gitweb /
libsystemd-bus: use assert_return
[elogind.git] / src / libsystemd-bus / bus-error.c
index 25eaf0eee4961563535afc95b55e1ced63145169..4f1862975882e71c7c7a4cfddc4287dcbee9f0df 100644 (file)
@@ -39,8 +39,7 @@ static int bus_error_name_to_errno(const char *name) {
         const char *p;
         int r;
 
         const char *p;
         int r;
 
-        if (!name)
-                return EINVAL;
+        assert_return(name, EINVAL);
 
         p = startswith(name, "System.Error.");
         if (p) {
 
         p = startswith(name, "System.Error.");
         if (p) {