mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
home: fix segfault when parsing arguments in PAM module
This commit is contained in:
parent
0e4daba173
commit
f12d19b304
@ -36,7 +36,7 @@ static int parse_argv(
|
||||
for (i = 0; i < argc; i++) {
|
||||
const char *v;
|
||||
|
||||
if ((v = startswith(argv[1], "suspend="))) {
|
||||
if ((v = startswith(argv[i], "suspend="))) {
|
||||
int k;
|
||||
|
||||
k = parse_boolean(v);
|
||||
|
Loading…
x
Reference in New Issue
Block a user