[evolution] Bug 739375 - Crash when sort folder with Due By column ][



commit 77df354fbaa5cd52413342a4af380641c8be0c65
Author: Milan Crha <mcrha redhat com>
Date:   Thu Oct 30 09:11:21 2014 +0100

    Bug 739375 - Crash when sort folder with Due By column ][

 e-util/e-table-extras.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/e-util/e-table-extras.c b/e-util/e-table-extras.c
index dcf15b0..43fca94 100644
--- a/e-util/e-table-extras.c
+++ b/e-util/e-table-extras.c
@@ -117,7 +117,7 @@ e_int64ptr_compare (gconstpointer data1,
                return (*pa == *pb) ? 0 : (*pa < *pb) ? -1 : 1;
 
        /* sort unset values before set */
-       return pa ? 1 : -1;
+       return (!pa && !pb) ? 0 : (pa ? 1 : -1);
 }
 
 /* UTF-8 strncasecmp - not optimized */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]