mesa: silence uninitialized var warning
authorBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 22:56:04 +0000 (15:56 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 10 Nov 2011 23:00:46 +0000 (16:00 -0700)
src/mesa/main/uniform_query.cpp

index 39aa557..5371d6a 100644 (file)
@@ -894,7 +894,7 @@ _mesa_get_uniform_location(struct gl_context *ctx,
       array_lookup = false;
    }
 
-   unsigned location;
+   unsigned location = 0;
    const bool found = shProg->UniformHash->get(location, name_copy);
 
    assert(!found