Check for NULL pointers before setting values.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@14390 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
alexm 2002-09-01 10:59:25 +00:00
parent b3f0cba5b0
commit 7e54e51b50
2 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2002-09-01 12:58 Alexander Malmberg <alexander@malmberg.org>
* Source/art/ARTContext.m ([ARTGState -GSCurrentDevice:::]): Check
for NULL pointers before setting values.
2002-08-31 19:54 Alexander Malmberg <alexander@malmberg.org>
* Source/art/path.m (DPSrectfill::::): Calculate alpha pointer

View file

@ -566,11 +566,17 @@ very expensive
-(void) GSCurrentDevice: (void **)device : (int *)x : (int *)y
{
*x = *y = 0;
if (wi)
*device = wi->window;
else
*device = NULL;
if (x)
*x = 0;
if (y)
*y = 0;
if (device)
{
if (wi)
*device = wi->window;
else
*device = NULL;
}
}
#endif