logind: fix some potentially uninitialized accesses
This commit is contained in:
parent
736925d5cd
commit
501c92c432
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue