Merge branch 'maint' into next

next
Theodore Ts'o 2016-08-10 18:53:14 -04:00
commit 9a23fa8334
1 changed files with 2 additions and 2 deletions

View File

@ -1174,8 +1174,8 @@ static void PRS(int argc, char *argv[])
progress_fd = 0;
else
goto next_arg;
} else if ((i+1) < argc &&
!strncmp(argv[i+1], "-", 1) == 0) {
} else if (argc > i + 1 &&
argv[i + 1][0] != '-') {
progress_fd = string_to_int(argv[i]);
if (progress_fd < 0)
progress_fd = 0;