Line 0
Link Here
|
|
|
1 |
--- thunar/thunar-file.c.orig 2017-11-25 16:54:56 UTC |
2 |
+++ thunar/thunar-file.c |
3 |
@@ -3966,7 +3966,9 @@ thunar_file_unwatch (ThunarFile *file) |
4 |
gboolean |
5 |
thunar_file_reload (ThunarFile *file) |
6 |
{ |
7 |
- _thunar_return_val_if_fail (THUNAR_IS_FILE (file), FALSE); |
8 |
+ /* if the file has already been destroyed, break here */ |
9 |
+ if (!THUNAR_IS_FILE (file)) |
10 |
+ return FALSE; |
11 |
|
12 |
/* clear file pxmap cache */ |
13 |
thunar_icon_factory_clear_pixmap_cache (file); |
14 |
@@ -4090,11 +4092,11 @@ thunar_file_compare_by_name (const ThunarFile *file_a, |
15 |
|
16 |
/* case insensitive checking */ |
17 |
if (G_LIKELY (!case_sensitive)) |
18 |
- result = strcmp (file_a->collate_key_nocase, file_b->collate_key_nocase); |
19 |
+ result = g_strcmp0 (file_a->collate_key_nocase, file_b->collate_key_nocase); |
20 |
|
21 |
/* fall-back to case sensitive */ |
22 |
if (result == 0) |
23 |
- result = strcmp (file_a->collate_key, file_b->collate_key); |
24 |
+ result = g_strcmp0 (file_a->collate_key, file_b->collate_key); |
25 |
|
26 |
/* this happens in the trash */ |
27 |
if (result == 0) |