Revert "XKB: Avoid a possible NULL dereference"

Sorry for the noise.  I accidentally pushed and didn't mean to. =(

This reverts commit 4024091678.
This commit is contained in:
Jeremy Huddleston 2011-05-04 15:31:17 -07:00
parent 46d04bc4e7
commit c987ef04be

View file

@ -146,7 +146,7 @@ register int i;
XkbShapePtr shape;
XkbRowPtr row;
XkbDoodadPtr doodad;
XkbBoundsPtr bounds,rbounds;
XkbBoundsPtr bounds,rbounds=NULL;
if ((!geom)||(!section))
return False;
@ -185,7 +185,7 @@ XkbBoundsPtr bounds,rbounds;
default:
tbounds.x1= tbounds.x2= doodad->any.left;
tbounds.y1= tbounds.y2= doodad->any.top;
continue;
break;
}
_XkbCheckBounds(bounds,rbounds->x1,rbounds->y1);
_XkbCheckBounds(bounds,rbounds->x2,rbounds->y2);