diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-07-13 15:41:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-07-13 15:41:48 +0300 |
commit | 2373a2196e21b35998961fff2f53c5fa98036cd8 (patch) | |
tree | 0c4fd6e798236584dec20eec48deb9b7662e084f /source/blender/imbuf | |
parent | 6a0fe79db5a5fc55797d772e08813bd7e7e970f4 (diff) |
Cleanup: duplicate checks, unused initialization
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r-- | source/blender/imbuf/intern/bmp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/bmp.c b/source/blender/imbuf/intern/bmp.c index ad72f373d12..70bb70ec4fa 100644 --- a/source/blender/imbuf/intern/bmp.c +++ b/source/blender/imbuf/intern/bmp.c @@ -395,9 +395,8 @@ bool imb_savebmp(ImBuf *ibuf, const char *filepath, int UNUSED(flags)) } } } - if (ofile) { - fflush(ofile); - fclose(ofile); - } + + fflush(ofile); + fclose(ofile); return 1; } |