code style: fix inconsistent NULL pointer comparisons
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
07ca3eb9f8
commit
95a3eb5a7d
12 changed files with 216 additions and 219 deletions
|
|
@ -1092,7 +1092,7 @@ String *Swig_string_strip(String *s) {
|
|||
} else {
|
||||
const char *cs = Char(s);
|
||||
const char *ce = Strchr(cs, ']');
|
||||
if (*cs != '[' || ce == NULL) {
|
||||
if (*cs != '[' || !ce) {
|
||||
ns = NewString(s);
|
||||
} else {
|
||||
String *fmt = NewStringf("%%.%ds", ce-cs-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue