From 0d08824801940dddfa85a0edbdbe9ba0cdb26bba Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Tue, 17 May 2016 14:21:50 -0700 Subject: [PATCH] Permit allocating empty strings in string_or_die() Signed-off-by: Patrick McCarty --- src/helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.c b/src/helpers.c index 8c514aa..95d000c 100644 --- a/src/helpers.c +++ b/src/helpers.c @@ -101,7 +101,7 @@ void string_or_die(char **strp, const char *fmt, ...) va_list ap; va_start(ap, fmt); - if (vasprintf(strp, fmt, ap) <= 0) { + if (vasprintf(strp, fmt, ap) < 0) { assert(0); } va_end(ap);