summaryrefslogtreecommitdiff
path: root/src/uaccess.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-13 23:17:05 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-13 23:17:05 +0200
commit501c92c432c7bef452a2714c29519bdd45281a72 (patch)
tree5488555b0ad9ef9eec957883c59489cd3d3d8bd5 /src/uaccess.c
parent736925d5cd58eb64b0db75aed93f7b96c959a1a9 (diff)
logind: fix some potentially uninitialized accessessystemd/v30
Diffstat (limited to 'src/uaccess.c')
-rw-r--r--src/uaccess.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uaccess.c b/src/uaccess.c
index 1683707977..435471e91a 100644
--- a/src/uaccess.c
+++ b/src/uaccess.c
@@ -28,7 +28,7 @@
int main(int argc, char *argv[]) {
int r;
- const char *path, *seat;
+ const char *path = NULL, *seat;
char *p, *active_uid = NULL;
unsigned long ul;
bool changed_acl = false;
@@ -49,6 +49,7 @@ int main(int argc, char *argv[]) {
p = strappend("/run/systemd/seats/", seat);
if (!p) {
log_error("Out of memory.");
+ r = -ENOMEM;
goto finish;
}