]> git.xonotic.org Git - xonotic/netradiant.git/commitdiff
valgrind: Conditional jump or move depends on uninitialised value
authorThomas Debesse <dev@illwieckz.net>
Tue, 14 Jan 2020 04:47:47 +0000 (05:47 +0100)
committerThomas Debesse <dev@illwieckz.net>
Mon, 20 Jan 2020 19:53:24 +0000 (20:53 +0100)
tools/quake3/q3map2/shaders.c

index 166319aa930862279da2abee60d3f9c0d9176969..97d98fb1a05b4ba668b32ea451db5f2082f5555c 100644 (file)
@@ -1272,8 +1272,7 @@ static void ParseShaderFile( const char *filename ){
                        else if ( !Q_stricmp( token, "sun" ) /* sof2 */ || !Q_stricmp( token, "q3map_sun" ) || !Q_stricmp( token, "q3map_sunExt" ) ) {
                                float a, b;
                                sun_t       *sun;
-                               qboolean ext;
-
+                               qboolean ext = qfalse;
 
                                /* ydnar: extended sun directive? */
                                if ( !Q_stricmp( token, "q3map_sunext" ) ) {