label.c: Set empty text by default

This will avoid crashing the application on rendering due to
uninitialized labels.
This commit is contained in:
Xavier Del Campo Romero 2022-09-23 04:20:11 +02:00
parent 9e308d97d9
commit f8c74babda
1 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,8 @@ void gui_label_init(struct gui_label *const l)
.common =
{
.cb = &cb
}
},
.text = ""
};
}