aboutsummaryrefslogtreecommitdiff
path: root/src
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
commit0a50df4a55313b0b5978bc9da791131203cf1afb (patch)
tree3cc93a2c0e1be579e2b70111bf141488b0d1ebbd /src
parent010f139034d0adb923ec58f41b7c2043bf8f3e84 (diff)
downloadjancity-0a50df4a55313b0b5978bc9da791131203cf1afb.tar.gz
label.c: Set empty text by default
This will avoid crashing the application on rendering due to uninitialized labels.
Diffstat (limited to 'src')
-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 = ""
};
}