Re-Revised to use break statement instead of return.

This commit is contained in:
Eharve14 2022-01-15 09:14:13 -05:00
parent 67536c7144
commit 43bf2bec84
3 changed files with 6 additions and 3 deletions

View File

@ -488,7 +488,8 @@ static unsigned int get_num_images(char *imgdirpath)
}
if (num_images == UINT_MAX) {
fprintf(stderr, "Too many files in folder %s\n", imgdirpath);
return 0;
num_images = 0;
break;
}
num_images++;
}

View File

@ -391,7 +391,8 @@ unsigned int get_num_images(char *imgdirpath)
}
if (num_images == UINT_MAX) {
fprintf(stderr, "Too many files in folder %s\n", imgdirpath);
return 0;
num_images = 0;
break;
}
num_images++;

View File

@ -143,7 +143,8 @@ static unsigned int get_num_images(char *imgdirpath)
}
if (num_images == UINT_MAX) {
fprintf(stderr, "Too many files in folder %s\n", imgdirpath);
return 0;
num_images = 0;
break;
}
num_images++;
}