st/dri: fix warning: ‘bind’ may be used uninitialized in this function
authorMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 07:49:54 +0000 (08:49 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sat, 12 Mar 2011 07:49:54 +0000 (08:49 +0100)
src/gallium/state_trackers/dri/drm/dri2.c

index a5c94b4166b0de697cfec4db3395d683776af97e..30326a23d6cd09747edf365e45b781a755fa9598 100644 (file)
@@ -270,7 +270,7 @@ dri2_allocate_buffer(__DRIscreen *sPriv,
    struct pipe_resource templ;
    enum st_attachment_type statt;
    enum pipe_format pf;
-   unsigned bind;
+   unsigned bind = 0;
    struct winsys_handle whandle;
 
    switch (attachment) {