aboutsummaryrefslogtreecommitdiff
path: root/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.c')
-rw-r--r--xmalloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmalloc.c b/xmalloc.c
index 22ea3540..f249e397 100644
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -111,7 +111,7 @@ xvasprintf(char **ret, const char *fmt, va_list ap)
i = vasprintf(ret, fmt, ap);
- if (i < 0 || *ret == NULL)
+ if (i == -1)
fatalx("xasprintf: %s", strerror(errno));
return i;