[nautilus] Check for NULL when sorting columns
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus] Check for NULL when sorting columns
- Date: Tue, 21 Apr 2009 09:51:43 -0400 (EDT)
commit 7da1601ba6288e48dc6ed3023de03fff04d20b2d
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Apr 21 15:49:31 2009 +0200
Check for NULL when sorting columns
Check for a NULL value of the order array when sorting the columns.
This might help when dealing with strange GConf setup issues (#524341).
---
libnautilus-private/nautilus-column-utilities.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/libnautilus-private/nautilus-column-utilities.c b/libnautilus-private/nautilus-column-utilities.c
index 5c11ade..bc8c80b 100644
--- a/libnautilus-private/nautilus-column-utilities.c
+++ b/libnautilus-private/nautilus-column-utilities.c
@@ -250,6 +250,10 @@ GList *
nautilus_sort_columns (GList *columns,
char **column_order)
{
+ if (!column_order) {
+ return NULL;
+ }
+
return g_list_sort_with_data (columns,
(GCompareDataFunc)column_compare,
column_order);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]