summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2019-03-24 01:47:00 +0100
committermonsta <[email protected]>2019-07-23 16:00:24 +0300
commite4596d56b206d86f0b51948ad58eb2c8bf62f821 (patch)
tree45388b9c67635ccef43454e3b06cae7bc3eba5f2 /src
parentac65bdb624c5abe65026d7df767be1f7c912d5b6 (diff)
downloadcaja-e4596d56b206d86f0b51948ad58eb2c8bf62f821.tar.bz2
caja-e4596d56b206d86f0b51948ad58eb2c8bf62f821.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; ^~~~~~
Diffstat (limited to 'src')
-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);
}