mirror of
https://github.com/clearlinux/swupd-server.git
synced 2026-09-05 05:01:34 +00:00
Permit allocating empty strings in string_or_die()
Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user