xvmc: fix some warning about uninitialized vars
authorChristian König <deathsimple@vodafone.de>
Tue, 7 Jun 2011 19:15:58 +0000 (21:15 +0200)
committerChristian König <deathsimple@vodafone.de>
Tue, 7 Jun 2011 19:15:58 +0000 (21:15 +0200)
src/gallium/state_trackers/xorg/xvmc/context.c

index a28c3f7a42465fb98d9c5f966e79e658dde64df7..fbfa1afe44cf3d9a17703137d5bbbb2e01d998a8 100644 (file)
@@ -53,7 +53,7 @@ static Status Validate(Display *dpy, XvPortID port, int surface_type_id,
    XvAdaptorInfo *adaptor_info;
    unsigned int num_adaptors;
    int num_types;
-   unsigned int max_width, max_height;
+   unsigned int max_width = 0, max_height = 0;
    Status ret;
 
    assert(dpy);