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>2010-11-23 11:44:21 +0300
committerCampbell Barton <ideasman42@gmail.com>2010-11-23 11:44:21 +0300
commitce2295999e5fc667f3574b9c53cba04155bd1546 (patch)
treef54198fa757c4282a2f0f79c46d6fedbbf728480 /source/blender/avi
parent225be0cf30940cf840bbac0f19b10efadecf94d4 (diff)
use zero initializers instead of memset(), also change PointerRNA_NULL from an extern into a define.
Diffstat (limited to 'source/blender/avi')
-rw-r--r--source/blender/avi/intern/avi.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/avi/intern/avi.c b/source/blender/avi/intern/avi.c
index d4b39b176d8..a30f51da499 100644
--- a/source/blender/avi/intern/avi.c
+++ b/source/blender/avi/intern/avi.c
@@ -213,15 +213,13 @@ int AVI_is_avi (char *name) {
int AVI_is_avi (const char *name) {
int temp, fcca, j;
- AviMovie movie;
+ AviMovie movie= {0};
AviMainHeader header;
AviBitmapInfoHeader bheader;
int movie_tracks = 0;
DEBUG_PRINT("opening movie\n");
- memset(&movie, 0, sizeof(AviMovie));
-
movie.type = AVI_MOVIE_READ;
movie.fp = fopen (name, "rb");
movie.offset_table = NULL;