st/dri: fix warning: ‘bind’ may be used uninitialized in this function

This commit is contained in:
Marek Olšák 2011-03-12 08:49:54 +01:00
parent f1e160f89b
commit 1868d21c8e

View 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) {