diff options
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-bookmark.c | 7 |
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; |