[PATCH] [frame-buffer] Initialise backend->head.map_address
Colin Watson
cjwatson at ubuntu.com
Tue Mar 30 11:29:48 PDT 2010
It's possible for activate to be called before map_to_device, for
example if a non-graphical splash plugin is in use. Initialise
map_address to MAP_FAILED so that we won't try to redraw in this
situation.
---
src/plugins/renderers/frame-buffer/plugin.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/plugins/renderers/frame-buffer/plugin.c b/src/plugins/renderers/frame-buffer/plugin.c
index ea511a2..479e1c2 100644
--- a/src/plugins/renderers/frame-buffer/plugin.c
+++ b/src/plugins/renderers/frame-buffer/plugin.c
@@ -261,6 +261,7 @@ create_backend (const char *device_name,
ply_trace ("creating renderer backend for device %s", backend->device_name);
backend->loop = ply_event_loop_get_default ();
+ backend->head.map_address = MAP_FAILED;
backend->heads = ply_list_new ();
backend->input_source.key_buffer = ply_buffer_new ();
backend->terminal = terminal;
--
1.7.0
More information about the plymouth
mailing list