summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-12-19 20:47:09 +0300
committerMonsta <[email protected]>2015-12-19 20:47:09 +0300
commit17260d6f9549e2a8e51a08b7a156bae77d5e8e75 (patch)
tree46c5ab782e22ae6cf2636b99324330fd8aa48c27
parent706a0b60812c33d44210088706dbcf8d4324a9da (diff)
downloadcaja-17260d6f9549e2a8e51a08b7a156bae77d5e8e75.tar.bz2
caja-17260d6f9549e2a8e51a08b7a156bae77d5e8e75.tar.xz
use g_strcmp0 instead of unsafe strcmp
-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];
}