diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-10 19:24:38 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2010-08-10 19:24:38 +0000 |
commit | 503ac8ec06eda77e117dea0e7e23f76e956b3733 (patch) | |
tree | c99e7812575034fd8d3e4c09dddc077437980b34 | |
parent | 2277b0de54a048f24faca5bac852d1240321e14c (diff) | |
download | libast-503ac8ec06eda77e117dea0e7e23f76e956b3733.tar.gz |
Do not compare pointers to 0
SVN revision: 50973
-rw-r--r-- | src/snprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snprintf.c b/src/snprintf.c index 77ce893..273f0a1 100644 --- a/src/snprintf.c +++ b/src/snprintf.c @@ -239,7 +239,7 @@ fmtstr(char *value, int ljust, int len, int zpad, int precision) int padlen, strlen, i, c; /* amount to pad */ zpad = 0; - if (value == 0) { + if (value == NULL) { value = "<NULL>"; } if (precision > 0) { @@ -382,7 +382,7 @@ dostr(char *str) static void dopr_outch(int c) { - if (end == 0 || output < end) { + if (end == NULL || output < end) { *output++ = c; } } |