Projects > cpp > Issues > Bug #531

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Change the usage of (xxx != NULL) to determine if the pointer is null

Bug #531 [Closed]
zhangxm 2011-06-21 02:14 . Updated over 4 years ago

In some environments, if use

if (xxx)
{
}

The condition will be false all the time no matter the value of xxx.

Detail description
http://www.cocos2d-x.org/boards/7/topics/1638?r=1982\#message-1982

liswei 2011-06-21 19:51
  • Status changed from New to In Progress
  • Assignee set to liswei
walzer@cocos2d-x.org 2011-07-11 18:50
  • Status changed from In Progress to Closed

Manually merged.

walzer@cocos2d-x.org 2012-05-25 08:10
  • Project changed from cocos2d-x to cpp
  • Category deleted (5)
  • Target version deleted (cocos2d-1.0.0-x-0.9.0)

Atom PDF

Status:Closed
Start date:2011-06-21
Priority:Normal
Due date:
Assignee:liswei
% Done:

0%

Category:-
Target version:-

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.