[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 22:56:58 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   4   
   in repository xfce/thunar.

commit d9521391850478ec569c563f7768b58174aa4f4a
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 5194b66..d9147aa 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -4144,11 +4144,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