diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-07-28 11:37:24 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-07-28 11:37:24 +0400 |
commit | fa9550bba066e076b7cedd1a131f9fb44d16db10 (patch) | |
tree | 297eec9a8d2bb66c23fe7c085987aeb4f3ee7b49 /source/blender/imbuf/intern | |
parent | 3c0ed589c1325535c640b37dcf3fd7c9177b3406 (diff) |
fix for un-initialized memory use with thumb's & minor internal improvement for bpy.utils.clean_name()
Diffstat (limited to 'source/blender/imbuf/intern')
-rw-r--r-- | source/blender/imbuf/intern/thumbs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/thumbs.c b/source/blender/imbuf/intern/thumbs.c index 234c8837b35..dcbd6df7ced 100644 --- a/source/blender/imbuf/intern/thumbs.c +++ b/source/blender/imbuf/intern/thumbs.c @@ -243,12 +243,12 @@ void IMB_thumb_makedirs() /* create thumbnail for file and returns new imbuf for thumbnail */ ImBuf* IMB_thumb_create(const char* path, ThumbSize size, ThumbSource source, ImBuf *img) { - char uri[URI_MAX]; + char uri[URI_MAX]= ""; char desc[URI_MAX+22]; char tpath[FILE_MAX]; char tdir[FILE_MAX]; char temp[FILE_MAX]; - char mtime[40]; + char mtime[40]= "0"; /* incase we can't stat the file */ char cwidth[40]; char cheight[40]; char thumb[40]; |