1
0
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:
Haochen Tong 2020-03-15 23:34:35 +01:00 committed by Yu Watanabe
parent 0e4daba173
commit f12d19b304

View File

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