diff options
author | Martin Wehner <martin.wehner@epost.de> | 2005-01-27 19:03:57 +0000 |
---|---|---|
committer | Martin Wehner <mwehner@src.gnome.org> | 2005-01-27 19:03:57 +0000 |
commit | 2e000b4d9c872d6b045a7a9dd9e9fc80c58e2438 (patch) | |
tree | 88b4ffa1199ae8d258d08f3b86e710bd36a7e25b /libnautilus-private | |
parent | c18bd686a70095bf45df1af8aef8485306f11594 (diff) | |
download | nautilus-2e000b4d9c872d6b045a7a9dd9e9fc80c58e2438.tar.gz |
Don't compare NULL values from files we can't get permissions for. Fixes
2005-01-27 Martin Wehner <martin.wehner@epost.de>
* libnautilus-private/nautilus-file.c:
(nautilus_file_compare_for_sort_by_attribute):
Don't compare NULL values from files we can't get permissions for.
Fixes bug #153890.
Diffstat (limited to 'libnautilus-private')
-rw-r--r-- | libnautilus-private/nautilus-file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c index 62ff249cc..e33cda346 100644 --- a/libnautilus-private/nautilus-file.c +++ b/libnautilus-private/nautilus-file.c @@ -2341,7 +2341,9 @@ nautilus_file_compare_for_sort_by_attribute (NautilusFile value_2 = nautilus_file_get_string_attribute (file_2, attribute); - result = strcmp (value_1, value_2); + if (value_1 != NULL && value_2 != NULL) { + result = strcmp (value_1, value_2); + } g_free (value_1); g_free (value_2); |