boot_buffer may be NULL if plymouthd failed to attach to the console
session (e.g. if booting without an initramfs so /dev/pts isn't mounted
yet). Handle this gracefully rather than segfaulting.
detach_from_event_loop,
plugin);
- size = ply_buffer_get_size (boot_buffer);
+ if (boot_buffer)
+ {
+ size = ply_buffer_get_size (boot_buffer);
- write_on_views (plugin, ply_buffer_get_bytes (boot_buffer), size);
+ write_on_views (plugin, ply_buffer_get_bytes (boot_buffer), size);
+ }
return true;
}