mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 07:28:03 +02:00
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:
parent
46d04bc4e7
commit
c987ef04be
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue