[Xfce4-commits] [xfce/thunar] 01/01: FreeBSD -Thunar crash due to passing null to strcmp() (Bug #15059)

noreply at xfce.org noreply at xfce.org
Sat Jan 19 23:06:43 CET 2019


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

a   l   e   x       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       x   f   c   e   -   4   .   1   2   
   in repository xfce/thunar.

commit b1b693cf122a1a95c7a2b497ccdef49b6a8bc81a
Author: Roy Richardson <rocketx86 at gmail.com>
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.


More information about the Xfce4-commits mailing list