summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-24 01:47:00 +0100
committerZenWalker <[email protected]>2019-03-28 03:32:42 +0100
commit6b9bed243b886ba59033addf172c857048f074c2 (patch)
treedfd20fbc1c58c357c7e0d8a31d6bb8a751771fb8
parent22ca5d603739c49c5bda9f696135bd23a9427f5d (diff)
downloadcaja-6b9bed243b886ba59033addf172c857048f074c2.tar.bz2
caja-6b9bed243b886ba59033addf172c857048f074c2.tar.xz
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; ^~~~~~
-rw-r--r--src/caja-sidebar-title.c2
1 files changed, 1 insertions, 1 deletions
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);
}