home: fix segfault when parsing arguments in PAM module

This commit is contained in:
Haochen Tong
2020-03-16 16:20:11 +09:00
committed by Yu Watanabe
parent 0e4daba173
commit f12d19b304
+1 -1
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);