Merge "modify a minor error in mount_with_alternatives Test: when called with end_idx = null"

This commit is contained in:
Treehugger Robot 2016-12-20 02:08:35 +00:00 committed by Gerrit Code Review
commit 3080ce2fe4

View file

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