summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-26 13:13:22 +0300
committermonsta <[email protected]>2016-01-26 13:13:22 +0300
commitebf820f112dd840b73183c693a832001f53b7bae (patch)
treec5afb9de9e2b6b3a2405bad2da4ad304a75a9fc4 /libcaja-private
parent1129e653f6e33ea34efe64601643fbbe9a9d6f28 (diff)
downloadcaja-ebf820f112dd840b73183c693a832001f53b7bae.tar.bz2
caja-ebf820f112dd840b73183c693a832001f53b7bae.tar.xz
use g_strcmp0 instead of strcmp
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-bookmark.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libcaja-private/caja-bookmark.c b/libcaja-private/caja-bookmark.c
index b80f1ddc..04a63242 100644
--- a/libcaja-private/caja-bookmark.c
+++ b/libcaja-private/caja-bookmark.c
@@ -32,7 +32,6 @@
#include <eel/eel-vfs-extensions.h>
#include <gtk/gtk.h>
#include <gio/gio.h>
-#include <string.h>
#include <libcaja-private/caja-file.h>
#include <libcaja-private/caja-icon-names.h>
@@ -300,7 +299,7 @@ caja_bookmark_set_name (CajaBookmark *bookmark, const char *new_name)
g_return_val_if_fail (new_name != NULL, FALSE);
g_return_val_if_fail (CAJA_IS_BOOKMARK (bookmark), FALSE);
- if (strcmp (new_name, bookmark->details->name) == 0)
+ if (g_strcmp0 (new_name, bookmark->details->name) == 0)
{
return FALSE;
}
@@ -437,7 +436,7 @@ bookmark_file_changed_callback (CajaFile *file, CajaBookmark *bookmark)
{
display_name = caja_file_get_display_name (file);
- if (strcmp (bookmark->details->name, display_name) != 0)
+ if (g_strcmp0 (bookmark->details->name, display_name) != 0)
{
g_free (bookmark->details->name);
bookmark->details->name = display_name;
@@ -554,7 +553,7 @@ caja_bookmark_connect_file (CajaBookmark *bookmark)
caja_file_check_if_ready (bookmark->details->file, CAJA_FILE_ATTRIBUTE_INFO))
{
display_name = caja_file_get_display_name (bookmark->details->file);
- if (strcmp (bookmark->details->name, display_name) != 0)
+ if (g_strcmp0 (bookmark->details->name, display_name) != 0)
{
g_free (bookmark->details->name);
bookmark->details->name = display_name;