Commit d35c6e0e authored by Mike Gorse's avatar Mike Gorse

gnome_bg_slide_show_get_current_slide: add NULL check

Ensure that a file is present. Guards against a crash in case of a
malformed xml file.

    Resolves: #169
parent 65c0d791
Pipeline #215980 passed with stage
in 4 minutes and 21 seconds
......@@ -543,7 +543,7 @@ gnome_bg_slide_show_get_current_slide (GnomeBGSlideShow *self,
if (is_fixed)
*is_fixed = slide->fixed;
if (file1)
if (file1 && slide->file1)
*file1 = find_best_size (slide->file1, width, height);
if (file2 && slide->file2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment