progs/tests: Silence uninitialized variable warning.
authorVinson Lee <vlee@vmware.com>
Sun, 3 Jan 2010 05:58:40 +0000 (21:58 -0800)
committerVinson Lee <vlee@vmware.com>
Sun, 3 Jan 2010 05:58:40 +0000 (21:58 -0800)
progs/tests/getprocaddress.c

index b905eeaf81b8f7f18e348b1d04766ade333116f7..e699baf44bc0810be71725fd329e02c88e6ace14 100644 (file)
@@ -1188,7 +1188,7 @@ exercise_buffer_objects(enum Map_Buffer_Usage usage)
    GLuint bufferID;
    GLint bufferMapped;
    static GLubyte data[BUFFER_DATA_SIZE] = {0};
-   float *dataPtr;
+   float *dataPtr = NULL;
 
    /* Get the function pointers we need.  These are from
     * GL_ARB_vertex_buffer_object and are required in all