summaryrefslogtreecommitdiff
path: root/src/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/snprintf.c')
-rw-r--r--src/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/snprintf.c b/src/snprintf.c
index 273f0a1..6ca1a7b 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 == NULL) {
+ if (!value) {
value = "<NULL>";
}
if (precision > 0) {
@@ -382,7 +382,7 @@ dostr(char *str)
static void
dopr_outch(int c)
{
- if (end == NULL || output < end) {
+ if (!end || output < end) {
*output++ = c;
}
}