diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-17 00:12:38 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-17 00:12:38 +0300 |
commit | fd448bcfc7a4bfb3698ec8d88094d439b94a1a92 (patch) | |
tree | 99c8cb2ccb36333aad404636288ebe7053a92f1a /source/blender/blenloader | |
parent | 26ee86b20dada4a46d31f34a25b063c65be0230c (diff) |
remove/comment unused defines, also zero FileGlobal.filename to quiet valgrind.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/writefile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/writefile.c b/source/blender/blenloader/intern/writefile.c index c1e5eadee6a..925b66f84a9 100644 --- a/source/blender/blenloader/intern/writefile.c +++ b/source/blender/blenloader/intern/writefile.c @@ -2386,6 +2386,10 @@ static void write_global(WriteData *wd, int fileflags, Main *mainvar) bScreen *screen; char subvstr[8]; + /* prevent mem checkers from complaining */ + fg.pads= fg.pad= 0; + memset(fg.filename, 0, sizeof(fg.filename)); + current_screen_compat(mainvar, &screen); /* XXX still remap G */ @@ -2411,7 +2415,6 @@ static void write_global(WriteData *wd, int fileflags, Main *mainvar) #else fg.revision= 0; #endif - fg.pads= fg.pad= 0; /* prevent mem checkers from complaining */ writestruct(wd, GLOB, "FileGlobal", 1, &fg); } |