]> de.git.xonotic.org Git - xonotic/netradiant.git/commitdiff
fix uninitialized use of an int when filtering a patch into a tree - possible perform...
authorRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 17:33:29 +0000 (19:33 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 5 Jun 2011 17:33:29 +0000 (19:33 +0200)
tools/quake3/q3map2/surface.c

index ba400b082df8068acc0397e7310e03e58233fe8c..b5dd724e15d9ee564b548f465129ec8d80108ff3 100644 (file)
@@ -2147,7 +2147,7 @@ subdivides a patch into an approximate curve and filters it into the tree
 
 static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t *tree )
 {
-       int                                     x, y, refs;
+       int                                     x, y, refs = 0;
        
        for(y = 0; y + 2 < ds->patchHeight; y += 2)
                for(x = 0; x + 2 < ds->patchWidth; x += 2)