Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-07-13 15:41:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-07-13 15:41:48 +0300
commit2373a2196e21b35998961fff2f53c5fa98036cd8 (patch)
tree0c4fd6e798236584dec20eec48deb9b7662e084f /source/blender/imbuf
parent6a0fe79db5a5fc55797d772e08813bd7e7e970f4 (diff)
Cleanup: duplicate checks, unused initialization
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/bmp.c7
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;
}