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 39aa5570ecacb269f798e4a65a874e4076a847ba..5371d6a176bb3d5454f6f7d9f674cfabe789939a 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