summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/file-manager/fm-icon-view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c
index 21e2cc5c..19a32cda 100644
--- a/src/file-manager/fm-icon-view.c
+++ b/src/file-manager/fm-icon-view.c
@@ -1170,7 +1170,7 @@ get_sort_criterion_by_metadata_text (const char *metadata_text)
/* Figure out what the new sort setting should be. */
for (i = 0; i < G_N_ELEMENTS (sort_criteria); i++)
{
- if (strcmp (sort_criteria[i].metadata_text, metadata_text) == 0)
+ if (g_strcmp0 (sort_criteria[i].metadata_text, metadata_text) == 0)
{
return &sort_criteria[i];
}