From 6b9bed243b886ba59033addf172c857048f074c2 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 24 Mar 2019 01:47:00 +0100 Subject: caja-sidebar-title: avoid 'NULL' inside 'setup_gc_with_fg' Fixes Clang static analyzer warning: caja-sidebar-title.c:233:49: warning: Dereference of null pointer (loaded from variable 'color') sidebar_title->details->label_colors[idx] = *color; ^~~~~~ --- src/caja-sidebar-title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c index 48eb8538..441e0056 100644 --- a/src/caja-sidebar-title.c +++ b/src/caja-sidebar-title.c @@ -260,7 +260,7 @@ caja_sidebar_title_select_text_color (CajaSidebarTitle *sidebar_title, if (!dark_info_color) { - light_info_color = g_malloc (sizeof (GdkRGBA)); + dark_info_color = g_malloc (sizeof (GdkRGBA)); gdk_rgba_parse (dark_info_color, DEFAULT_DARK_INFO_COLOR); } -- cgit v1.2.1