diff options
author | Monsta <[email protected]> | 2015-12-19 20:47:09 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2015-12-23 15:37:53 +0300 |
commit | 7f07a36402ebf4ae199a0d54b6fec2ba7182a5ae (patch) | |
tree | ef2b4e6db257683b1fe4bf1c615bb49613b260da /src/file-manager/fm-icon-view.c | |
parent | 52905cb4071a3a53efd10715cccc0237944e649f (diff) | |
download | caja-7f07a36402ebf4ae199a0d54b6fec2ba7182a5ae.tar.bz2 caja-7f07a36402ebf4ae199a0d54b6fec2ba7182a5ae.tar.xz |
use g_strcmp0 instead of unsafe strcmp
Diffstat (limited to 'src/file-manager/fm-icon-view.c')
-rw-r--r-- | src/file-manager/fm-icon-view.c | 2 |
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]; } |