More stylistic fixes

This commit is contained in:
Fredrick Brennan
2020-01-31 09:48:28 +08:00
parent aaaa34e119
commit 8a6b8b415c
3 changed files with 3 additions and 6 deletions
+1 -1
View File
@@ -263,8 +263,8 @@ bool png_path_to_bitmap(uint8_t** data, unsigned int* width, unsigned int* heigh
*data = calloc(filesize, sizeof(char));
fseek(fp, 0L, SEEK_SET); // rewind() deprecated on some platforms
size_t r = fread(*data, sizeof(char), filesize, fp);
if (r != filesize) return false;
fclose(fp);
if (r != filesize) return false;
png_read_data d;
memset(&d, 0, sizeof(png_read_data));
inflate_png_inner(&d, *data, filesize);