mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-07 03:48:08 +02:00
ply-label: Make NULL safe
commit 42d07913a0 made the pango plugin
NULL safe but the same problem exists in the freetype plugin.
This commit makes things NULL safe a layer higher.
This commit is contained in:
parent
bfaf591c03
commit
a045f01568
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ ply_label_load_plugin (ply_label_t *label)
|
|||
if (label->text != NULL) {
|
||||
if (label->rich_text == NULL) {
|
||||
label->plugin_interface->set_text_for_control (label->control,
|
||||
label->text);
|
||||
label->text?: "");
|
||||
} else {
|
||||
label->plugin_interface->set_rich_text_for_control (label->control,
|
||||
label->rich_text,
|
||||
|
|
@ -259,7 +259,7 @@ ply_label_set_text (ply_label_t *label,
|
|||
return;
|
||||
|
||||
label->plugin_interface->set_text_for_control (label->control,
|
||||
text);
|
||||
text?: "");
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue