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>2020-11-11 06:46:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-11-11 06:54:04 +0300
commit75c18b989c566d24c76f9f7a44271654bc07a02c (patch)
tree6abb42e2f30a50ff3c17b8a23ce6ac3ea758902b /source/blender/imbuf/intern/targa.c
parent36e5c9e026a49d0ead2290ae8c1d3ec27205b4a5 (diff)
Cleanup: remove redundant NULL checks in ImFileType.is_a callback
Most of these callbacks don't do a NULL check, so there is no need to do this for bmp/png. Also correct radiance_hdr comments.
Diffstat (limited to 'source/blender/imbuf/intern/targa.c')
-rw-r--r--source/blender/imbuf/intern/targa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/targa.c b/source/blender/imbuf/intern/targa.c
index 5a3cbd375b6..cb549fb43f2 100644
--- a/source/blender/imbuf/intern/targa.c
+++ b/source/blender/imbuf/intern/targa.c
@@ -288,7 +288,7 @@ static bool dumptarga(struct ImBuf *ibuf, FILE *file)
int imb_savetarga(struct ImBuf *ibuf, const char *filepath, int flags)
{
- char buf[20] = {0};
+ char buf[18] = {0};
FILE *fildes;
bool ok = false;