logind: fix some potentially uninitialized accesses

This commit is contained in:
Lennart Poettering 2011-07-13 23:17:05 +02:00
parent 736925d5cd
commit 501c92c432
2 changed files with 3 additions and 2 deletions

View file

@ -105,7 +105,7 @@ int devnode_acl(const char *path,
bool add, uid_t new_uid) {
acl_t acl;
int r;
int r = 0;
bool changed = false;
assert(path);

View file

@ -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;
}