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 a5c94b4..30326a2 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) {