summaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index f793344..6a94aa1 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -285,7 +285,7 @@ safe_print_string(const char *str, unsigned long len)
rb_size = 0;
return ((char *) NULL);
}
- if (ret_buff == NULL) {
+ if (!ret_buff) {
rb_size = len;
ret_buff = (char *) MALLOC(rb_size + 1);
} else if (len > rb_size) {