This is an automated email from the git hooks/post-receive script.

alex pushed a 
commit to branch 
xfce-4.12
in repository xfce/thunar.

commit b1b693cf122a1a95c7a2b497ccdef49b6a8bc81a
Author: Roy Richardson <[email protected]>
Date:   Sat Jan 19 22:53:14 2019 +0100

    FreeBSD -Thunar crash due to passing null to strcmp()
    (Bug #15059)
---
 thunar/thunar-file.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index bddd959..5b6a730 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -4096,11 +4096,11 @@ thunar_file_compare_by_name (const ThunarFile *file_a,
 
   /* case insensitive checking */
   if (G_LIKELY (!case_sensitive))
-    result = strcmp (file_a->collate_key_nocase, file_b->collate_key_nocase);
+    result = g_strcmp0 (file_a->collate_key_nocase, 
file_b->collate_key_nocase);
 
   /* fall-back to case sensitive */
   if (result == 0)
-    result = strcmp (file_a->collate_key, file_b->collate_key);
+    result = g_strcmp0 (file_a->collate_key, file_b->collate_key);
 
   /* this happens in the trash */
   if (result == 0)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
[email protected]
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to