diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 20:58:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-03 20:58:06 +0300 |
commit | 709c727c510a85426b87a9a2fb7fb8517fef7de9 (patch) | |
tree | c4664d4773eb77cbf38ee264e9189a6557a310c4 /source/blender/makesdna/intern | |
parent | 3326c0ca7523f5596a8ff96cb90a54b92e50ac5f (diff) |
replace 0 with NULL when used as a pointer
Diffstat (limited to 'source/blender/makesdna/intern')
-rw-r--r-- | source/blender/makesdna/intern/makesdna.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesdna/intern/makesdna.c b/source/blender/makesdna/intern/makesdna.c index 50083a3472c..15f63883191 100644 --- a/source/blender/makesdna/intern/makesdna.c +++ b/source/blender/makesdna/intern/makesdna.c @@ -615,7 +615,7 @@ int convert_include(char *filename) sp[0]= type; sp[1]= name; - if ((debugSDNA>1) && (names[name] != 0 )) printf("%s |", names[name]); + if ((debugSDNA>1) && (names[name] != NULL)) printf("%s |", names[name]); structpoin[1]++; sp+= 2; @@ -630,7 +630,7 @@ int convert_include(char *filename) sp[0]= type; sp[1]= name; - if ((debugSDNA > 1) && (names[name] != 0 )) printf("%s ||", names[name]); + if ((debugSDNA > 1) && (names[name] != NULL)) printf("%s ||", names[name]); structpoin[1]++; sp+= 2; @@ -660,7 +660,7 @@ int convert_include(char *filename) int arraysize(char *astr, int len) { int a, mul=1; - char str[100], *cp=0; + char str[100], *cp=NULL; memcpy(str, astr, len+1); |