]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[frame-buffer] Initialize backend->head.map_address
authorColin Watson <cjwatson@ubuntu.com>
Tue, 30 Mar 2010 19:46:57 +0000 (20:46 +0100)
committerCharlie Brej <cbrej@cs.man.ac.uk>
Tue, 30 Mar 2010 19:46:57 +0000 (20:46 +0100)
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.

src/plugins/renderers/frame-buffer/plugin.c

index ea511a28afbf24a70fff37a6f9bdf10dda778a68..479e1c28de78d6783ebe86b5412187d5043882f9 100644 (file)
@@ -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;