Re-Revised to use break statement instead of return.
This commit is contained in:
parent
67536c7144
commit
43bf2bec84
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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++;
|
||||
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue