diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:20:11 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-23 04:20:13 +0200 |
| commit | 0a50df4a55313b0b5978bc9da791131203cf1afb (patch) | |
| tree | 3cc93a2c0e1be579e2b70111bf141488b0d1ebbd /src | |
| parent | 010f139034d0adb923ec58f41b7c2043bf8f3e84 (diff) | |
| download | jancity-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.c | 4 |
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 = "" }; } |
