Make sure not to dereference a possible NULL pointer.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14871 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2002-10-29 22:01:06 +00:00
parent aed8c14a4d
commit aa544500b1
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2002-10-29 Adam Fedor <fedor@gnu.org>
* Source/x11/XGServerWindow.m ([XGServer -_checkWindowManager]):
Make sure not to dereference possible NULL pointer.
2002-10-28 Adam Fedor <fedor@gnu.org>
* Source/gsc/GSStreamContext.m (-DPSsetalpha:): Use GSsetalpha

View file

@ -497,7 +497,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
XA_CARDINAL, 32, -1, &count);
// If the two are not identical, the flag on the root window, was
// a left over from an old window manager.
if (*win1 == *win)
if (win1 && *win1 == *win)
{
wmflags |= XGWM_GNOME;
@ -519,7 +519,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
XA_WINDOW, 32, -1, &count);
// If the two are not identical, the flag on the root window, was
// a left over from an old window manager.
if (*win1 == *win)
if (win1 && *win1 == *win)
{
wmflags |= XGWM_EWMH;