chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
logind: introduce libsystemd-login.so as fast path to access logind data
[elogind.git]
/
src
/
uaccess.c
diff --git
a/src/uaccess.c
b/src/uaccess.c
index 1683707977e68964ea58aca1811e44e0413bef84..435471e91a7fde6c053c7615494ca21d5b0422a1 100644
(file)
--- a/
src/uaccess.c
+++ b/
src/uaccess.c
@@
-28,7
+28,7
@@
int main(int argc, char *argv[]) {
int r;
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;
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.");
p = strappend("/run/systemd/seats/", seat);
if (!p) {
log_error("Out of memory.");
+ r = -ENOMEM;
goto finish;
}
goto finish;
}