mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
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:
parent
b3f0cba5b0
commit
7e54e51b50
2 changed files with 16 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue