summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-10 19:24:38 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2010-08-10 19:24:38 +0000
commit503ac8ec06eda77e117dea0e7e23f76e956b3733 (patch)
treec99e7812575034fd8d3e4c09dddc077437980b34
parent2277b0de54a048f24faca5bac852d1240321e14c (diff)
downloadlibast-503ac8ec06eda77e117dea0e7e23f76e956b3733.tar.gz
Do not compare pointers to 0
SVN revision: 50973
-rw-r--r--src/snprintf.c4
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;
}
}