summaryrefslogtreecommitdiff
path: root/src/loginctl.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-09-23 02:39:28 +0200
committerLennart Poettering <lennart@poettering.net>2011-09-23 16:28:27 +0200
commitde3756ab9916551f3f4f1f360aee59aeed238b5b (patch)
treed3f8fc787262362d6edd63819fbab60cc6b0d285 /src/loginctl.c
parent4e240ab0c93f4d454b065eef7074132969ac6f16 (diff)
llvm-analyze: fix some bugs found by llvm-analyze
Diffstat (limited to 'src/loginctl.c')
-rw-r--r--src/loginctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/loginctl.c b/src/loginctl.c
index ba8020df23..811c3f1a90 100644
--- a/src/loginctl.c
+++ b/src/loginctl.c
@@ -1063,10 +1063,9 @@ static int show(DBusConnection *bus, char **args, unsigned n) {
uid_t uid;
uint32_t u;
- r = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
+ ret = get_user_creds((const char**) (args+i), &uid, NULL, NULL);
if (r < 0) {
log_error("User %s unknown.", args[i]);
- r = -ENOENT;
goto finish;
}