From b05ce4d99d986ece5a495577417b143fedb96c51 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 15 Sep 2015 10:36:00 +0100 Subject: [PATCH] mx-style: Do not call g_file_test(NULL) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This can result in a call to access(NULL, …), which is not allowed (although appears to be harmless on my Fedora 22 machine). Valgrind complains about it. See: https://bugzilla.gnome.org/show_bug.cgi?id=755046 --- mx/mx-style.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mx/mx-style.c b/mx/mx-style.c index 76e52f01..874978db 100644 --- a/mx/mx-style.c +++ b/mx/mx-style.c @@ -308,7 +308,7 @@ mx_style_load (MxStyle *style) error = NULL; - if (g_file_test (rc_file, G_FILE_TEST_EXISTS)) + if (rc_file != NULL && g_file_test (rc_file, G_FILE_TEST_EXISTS)) { /* load the default theme with lowest priority */ if (!mx_style_real_load_from_file (style, rc_file, NULL, &error, 0))