diff options
| author | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2025-12-19 17:21:45 +1100 |
|---|---|---|
| committer | TazyFoundSoup <gardendistrict0x0@outlook.com> | 2025-12-19 17:21:45 +1100 |
| commit | 44836c490dfa27e2f13a613d2b5ae800d17afbf6 (patch) | |
| tree | 1c0ed69ed3242f3e9db3d1ff503c7538d9d1c1f7 /src | |
| parent | e943a6867f0e37f5eb68e9911a1971f747ed7531 (diff) | |
fix(png): Do not close FILE on invalidation
Diffstat (limited to 'src')
| -rw-r--r-- | src/format/image/png.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/format/image/png.c b/src/format/image/png.c index 266f4f6..b454654 100644 --- a/src/format/image/png.c +++ b/src/format/image/png.c @@ -6,13 +6,11 @@ ff_result ff_png_isvalid(FILE *file) char raw_sig[8]; if (fread(raw_sig, sizeof(char), 8, file) != 8) { // Unable to read first 8 bytes - fclose(file); return FF_RESULT_ERROR_INVALID_FILE; } if (memcmp(raw_sig, PNG_SIGNATURE, 8) != 0) { // Signature did not match - fclose(file); return FF_RESULT_ERROR_INVALID_FILE_SIGNITURE; } |
