From f8c74babda04ea6b1105e11b7b56bd7e17b19f5e Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 23 Sep 2022 04:20:11 +0200 Subject: [PATCH] label.c: Set empty text by default This will avoid crashing the application on rendering due to uninitialized labels. --- src/gui/src/label.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/src/label.c b/src/gui/src/label.c index 9028184..0435861 100644 --- a/src/gui/src/label.c +++ b/src/gui/src/label.c @@ -34,6 +34,8 @@ void gui_label_init(struct gui_label *const l) .common = { .cb = &cb - } + }, + + .text = "" }; }