mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +00:00
static analyzer tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36523 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0fdebe8513
commit
54ff9b7de5
10 changed files with 110 additions and 97 deletions
|
@ -717,12 +717,12 @@ static inline BOOL timerInvalidated(NSTimer *t)
|
|||
GSRunLoopThreadInfo *info = GSRunLoopInfoForThread(nil);
|
||||
NSRunLoop *current = info->loop;
|
||||
|
||||
if (current == nil)
|
||||
if (nil == current)
|
||||
{
|
||||
current = info->loop = [[self alloc] _init];
|
||||
/* If this is the main thread, set up a housekeeping timer.
|
||||
*/
|
||||
if ([GSCurrentThread() isMainThread] == YES)
|
||||
if (nil != current && [GSCurrentThread() isMainThread] == YES)
|
||||
{
|
||||
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
||||
GSRunLoopCtxt *context;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue