summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/dietlibc/lib/__v_printf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mdk-stage1/dietlibc/lib/__v_printf.c b/mdk-stage1/dietlibc/lib/__v_printf.c
index 15011cdd8..1ff63bec1 100644
--- a/mdk-stage1/dietlibc/lib/__v_printf.c
+++ b/mdk-stage1/dietlibc/lib/__v_printf.c
@@ -30,6 +30,7 @@ int __v_printf(struct arg_printf* fn, const unsigned char *format, va_list arg_p
{
int len=0;
+ if (format)
while (*format) {
unsigned int sz = skip_to(format);
if (sz) {