Merge pull request #471 from Pan7/fixextwarn

Fix uninitialized use of ext warning
This commit is contained in:
Timothee "TTimo" Besset 2017-04-28 07:14:42 -05:00 committed by GitHub
commit 24a2a70db7
1 changed files with 3 additions and 0 deletions

View File

@ -1233,6 +1233,9 @@ static void ParseShaderFile( const char *filename ){
if ( !Q_stricmp( token, "q3map_sunext" ) ) { if ( !Q_stricmp( token, "q3map_sunext" ) ) {
ext = qtrue; ext = qtrue;
} }
else {
ext = qfalse;
}
/* allocate sun */ /* allocate sun */
sun = safe_malloc( sizeof( *sun ) ); sun = safe_malloc( sizeof( *sun ) );