mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-11 08:30:42 +00:00
Avoid possible nil pointer dereference if a poll is created with nil clients.
This commit is contained in:
parent
346f114fc6
commit
465bcaa70d
1 changed files with 4 additions and 1 deletions
|
@ -885,7 +885,10 @@ static Class cls = Nil;
|
|||
* caused by deallocation.
|
||||
*/
|
||||
_items[index].u = 0;
|
||||
NSIncrementExtraRefCount(client);
|
||||
if (client)
|
||||
{
|
||||
NSIncrementExtraRefCount(client);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue