summaryrefslogtreecommitdiff
path: root/src/libsystemd-bus/bus-creds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsystemd-bus/bus-creds.c')
-rw-r--r--src/libsystemd-bus/bus-creds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-bus/bus-creds.c b/src/libsystemd-bus/bus-creds.c
index d69a316d03..ffd72a7a3d 100644
--- a/src/libsystemd-bus/bus-creds.c
+++ b/src/libsystemd-bus/bus-creds.c
@@ -369,11 +369,11 @@ _public_ int sd_bus_creds_get_owner_uid(sd_bus_creds *c, uid_t *uid) {
_public_ int sd_bus_creds_get_cmdline(sd_bus_creds *c, char ***cmdline) {
assert_return(c, -EINVAL);
- assert_return(c->cmdline, -ESRCH);
if (!(c->mask & SD_BUS_CREDS_CMDLINE))
return -ENODATA;
+ assert_return(c->cmdline, -ESRCH);
assert(c->cmdline);
if (!c->cmdline_array) {