Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-03 20:58:06 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-03 20:58:06 +0300
commit709c727c510a85426b87a9a2fb7fb8517fef7de9 (patch)
treec4664d4773eb77cbf38ee264e9189a6557a310c4 /source/blender/makesdna/intern
parent3326c0ca7523f5596a8ff96cb90a54b92e50ac5f (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.c6
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);