aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-03-12 08:49:54 +0100
committerMarek Olšák <[email protected]>2011-03-12 08:49:54 +0100
commit1868d21c8ee1fdf775f3e3ddbb1c48fa89d5850c (patch)
tree1b1a5dd34bb84029e90d699af62a9b89205478c5 /src/gallium
parentf1e160f89b5557f5d64455f4d2735a64a7e289bb (diff)
st/dri: fix warning: ‘bind’ may be used uninitialized in this function
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/dri/drm/dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c
index a5c94b4166b..30326a23d6c 100644
--- a/src/gallium/state_trackers/dri/drm/dri2.c
+++ b/src/gallium/state_trackers/dri/drm/dri2.c
@@ -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) {