diff options
Diffstat (limited to 'src/gdisp')
-rw-r--r-- | src/gdisp/gdisp_gdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gdisp/gdisp_gdisp.c b/src/gdisp/gdisp_gdisp.c index e19c6d73..99861571 100644 --- a/src/gdisp/gdisp_gdisp.c +++ b/src/gdisp/gdisp_gdisp.c @@ -3312,6 +3312,9 @@ void gdispGDrawBox(GDisplay *g, coord_t x, coord_t y, coord_t cx, coord_t cy, co } coord_t gdispGetStringWidth(const char* str, font_t font) { + if (!str) + return 0; + /* No mutex required as we only read static data */ return mf_get_string_width(font, str, 0, 0); } |