aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:20:11 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-23 04:20:13 +0200
commitf8c74babda04ea6b1105e11b7b56bd7e17b19f5e (patch)
tree0bed0828138f43419c9c5762f316adfb3606bf44
parent9e308d97d983b152dc920219cf4555524747c992 (diff)
label.c: Set empty text by default
This will avoid crashing the application on rendering due to uninitialized labels.
-rw-r--r--src/gui/src/label.c4
1 files changed, 3 insertions, 1 deletions
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 = ""
};
}