fclose when fopen actually succeeds

This commit is contained in:
Dale Weiler 2021-03-26 19:02:27 -04:00
parent 13bcb5c5b1
commit 85c79d2f1c

View file

@ -631,8 +631,8 @@ int main(int argc, char **argv) {
FILE *fp = fopen(OPTS_OPTION_STR(OPTION_PROGSRC), "rb");
if (fp) {
has_progs_src = true;
fclose(fp);
}
fclose(fp);
}
if (has_progs_src) {