mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-25 08:51:03 +00:00
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:
parent
3950112be5
commit
2008ec4669
2 changed files with 7 additions and 2 deletions
|
@ -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>
|
2002-10-28 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
* Source/gsc/GSStreamContext.m (-DPSsetalpha:): Use GSsetalpha
|
* Source/gsc/GSStreamContext.m (-DPSsetalpha:): Use GSsetalpha
|
||||||
|
|
|
@ -497,7 +497,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
XA_CARDINAL, 32, -1, &count);
|
XA_CARDINAL, 32, -1, &count);
|
||||||
// If the two are not identical, the flag on the root window, was
|
// If the two are not identical, the flag on the root window, was
|
||||||
// a left over from an old window manager.
|
// a left over from an old window manager.
|
||||||
if (*win1 == *win)
|
if (win1 && *win1 == *win)
|
||||||
{
|
{
|
||||||
wmflags |= XGWM_GNOME;
|
wmflags |= XGWM_GNOME;
|
||||||
|
|
||||||
|
@ -519,7 +519,7 @@ NSDebugLLog(@"Frame", @"X2O %d, %@, %@", win->number,
|
||||||
XA_WINDOW, 32, -1, &count);
|
XA_WINDOW, 32, -1, &count);
|
||||||
// If the two are not identical, the flag on the root window, was
|
// If the two are not identical, the flag on the root window, was
|
||||||
// a left over from an old window manager.
|
// a left over from an old window manager.
|
||||||
if (*win1 == *win)
|
if (win1 && *win1 == *win)
|
||||||
{
|
{
|
||||||
wmflags |= XGWM_EWMH;
|
wmflags |= XGWM_EWMH;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue