summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvinash Sonawane <rootkea@gmail.com>2021-11-12 10:08:02 +0530
committerAndre Miranda <andreldm@xfce.org>2021-11-17 20:57:26 +0000
commit619ca4f10f9f05d35cbc516861572e7dfb4c7e29 (patch)
treecaa2fd65f2d6317562de3dbd10272c47b1edda2a
parent84ae135e2f17aa5e679935a322878136f187707f (diff)
downloadxfconf-619ca4f10f9f05d35cbc516861572e7dfb4c7e29.tar.gz
Argument to g_strv_length() must not be NULL
Thanks-to: Andre Miranda
-rw-r--r--xfconfd/xfconf-backend-perchannel-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfconfd/xfconf-backend-perchannel-xml.c b/xfconfd/xfconf-backend-perchannel-xml.c
index 601bd9f..ddc8c75 100644
--- a/xfconfd/xfconf-backend-perchannel-xml.c
+++ b/xfconfd/xfconf-backend-perchannel-xml.c
@@ -1663,7 +1663,7 @@ xfconf_backend_perchannel_xml_load_channel(XfconfBackendPerchannelXml *xbpx,
/* read in system files, we do this in reversed order to properly
* follow the xdg spec, see bug #6079 for more information */
- length = g_strv_length(filenames);
+ length = filenames ? g_strv_length(filenames) : 0;
for(i = length - 1; i >= 0; --i) {
if(!g_strcmp0(user_file, filenames[i]))
continue;