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…
Reference in a new issue