summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Watson <cjwatson@ubuntu.com>2010-03-30 20:46:57 +0100
committerCharlie Brej <cbrej@cs.man.ac.uk>2010-03-30 20:46:57 +0100
commitf83e2bb5e184a9c9f11f7b15161f5c44d94d6c21 (patch)
treee8203edeca49f2d2360b1b87c7e1e5999761dca0
parent92cc20f82fbd0f650d8065204198b292b2f8153a (diff)
[frame-buffer] Initialize backend->head.map_address
It's possible for activate to be called before map_to_device, for example if a non-graphical splash plugin is in use. Initialize map_address to MAP_FAILED so that we won't try to redraw in this situation.
-rw-r--r--src/plugins/renderers/frame-buffer/plugin.c1
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 ea511a28..479e1c28 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;