Eliminate some uninitialized variable warnings

This commit is contained in:
Keith Packard 2007-06-21 20:16:36 +01:00
parent 9d104634cf
commit d6e46f67ab
2 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,7 @@ i830_dvo_mode_set(xf86OutputPtr output, DisplayModePtr mode,
switch (dvo_reg) {
case DVOA:
default:
dvo_srcdim_reg = DVOA_SRCDIM;
break;
case DVOB:

View File

@ -1702,6 +1702,10 @@ i830_covering_crtc (ScrnInfoPtr pScrn,
best_crtc = NULL;
best_coverage = 0;
crtc_box_ret->x1 = 0;
crtc_box_ret->x2 = 0;
crtc_box_ret->y1 = 0;
crtc_box_ret->y2 = 0;
for (c = 0; c < xf86_config->num_crtc; c++)
{
crtc = xf86_config->crtc[c];