diff options
-rw-r--r-- | firmware/common/vuprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/vuprintf.c b/firmware/common/vuprintf.c index a040a3f0ac..4f669b2610 100644 --- a/firmware/common/vuprintf.c +++ b/firmware/common/vuprintf.c | |||
@@ -511,7 +511,7 @@ static inline const char * format_s(const void *str, | |||
511 | return NULL; /* wchar_t support for now */ | 511 | return NULL; /* wchar_t support for now */ |
512 | } | 512 | } |
513 | 513 | ||
514 | const char *s = str; | 514 | const char *s = str ? str : "(null)"; |
515 | size_t len; | 515 | size_t len; |
516 | /* string length may be specified by precision instead of \0- | 516 | /* string length may be specified by precision instead of \0- |
517 | terminated; however, don't go past a \0 if one is there */ | 517 | terminated; however, don't go past a \0 if one is there */ |