modify a minor error in mount_with_alternatives
Test: when called with end_idx = null Change-Id: I7e5d298f496847acb4aefbaad66cd98e907467bc Signed-off-by: forfun <forfun414@gmail.com>
This commit is contained in:
parent
3b261ace57
commit
c5c0306424
|
@ -464,7 +464,7 @@ static int mount_with_alternatives(struct fstab *fstab, int start_idx, int *end_
|
|||
if (!end_idx || !attempted_idx || start_idx >= fstab->num_entries) {
|
||||
errno = EINVAL;
|
||||
if (end_idx) *end_idx = start_idx;
|
||||
if (attempted_idx) *end_idx = start_idx;
|
||||
if (attempted_idx) *attempted_idx = start_idx;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue