From 4427da989f4c579a181e6dacaa975cc05831904f Mon Sep 17 00:00:00 2001 From: Ben Wiederhake Date: Sat, 5 Dec 2020 17:47:51 +0100 Subject: [PATCH] WindowServer: Initial wallpaper must not be NULL This used to crash 'pape -c' on a fresh image. Note that the special value is '', the empty string, and *not* NULL, i.e. an unset string. An empty string implies that the wallpaper is not an image, but rather a solid color. --- Services/WindowServer/Compositor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Services/WindowServer/Compositor.h b/Services/WindowServer/Compositor.h index f5a41dcbd2c..d0e85c0bfbd 100644 --- a/Services/WindowServer/Compositor.h +++ b/Services/WindowServer/Compositor.h @@ -114,7 +114,7 @@ private: Gfx::IntRect m_last_dnd_rect; Gfx::IntRect m_last_geometry_label_rect; - String m_wallpaper_path; + String m_wallpaper_path { "" }; WallpaperMode m_wallpaper_mode { WallpaperMode::Unchecked }; RefPtr m_wallpaper;