diff --git a/lib/framework/printf_ext.c b/lib/framework/printf_ext.c index 7de196661..683b2ce83 100644 --- a/lib/framework/printf_ext.c +++ b/lib/framework/printf_ext.c @@ -61,7 +61,8 @@ int vasprintf(char** strp, const char* format, va_list ap) if (count == 0) { - return strdup(""); + *strp = strdup(""); + return 0; } else if (count < 0) {