]> git.ipfire.org Git - thirdparty/plymouth.git/commit
ply-label: Don't crash if label plugin fails
authorFabian Vogt <fvogt@suse.com>
Fri, 6 Mar 2020 09:28:04 +0000 (10:28 +0100)
committerRay Strode <rstrode@redhat.com>
Mon, 17 Oct 2022 17:04:02 +0000 (13:04 -0400)
commitd019a7fce9a552e9f82871e046db23d0c68591c5
tree75781897750e566bab55d236322094177c12a8ed
parentccf2edf40641e3e14b546bf805edc0e173a56650
ply-label: Don't crash if label plugin fails

Right now if the label plugin fails during initialization, the plymouth
daemon crashes.

This commit adds a NULL check to fail more gracefully.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Fabian Vogt <fvogt@suse.com>
src/libply-splash-graphics/ply-label.c