diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-06-28 01:51:24 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-06-28 01:51:24 -0400 |
commit | cc8ee01ff67b3eaf1c4df97e9a45b2bdfde77dac (patch) | |
tree | f07e88d3ec487da8d6999c9221cb6dadf94b7b94 /gtk/gtkbookmarksmanager.c | |
parent | fda53e55298be2a26dffd3472d38fa71f810a4b8 (diff) | |
download | gtk+-cc8ee01ff67b3eaf1c4df97e9a45b2bdfde77dac.tar.gz |
Avoid a redundant strlen
The GString knows perfectly well how long it is. Pointed out in
https://bugzilla.gnome.org/show_bug.cgi?id=731158
Diffstat (limited to 'gtk/gtkbookmarksmanager.c')
-rw-r--r-- | gtk/gtkbookmarksmanager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbookmarksmanager.c b/gtk/gtkbookmarksmanager.c index 197c4cee8a..968b49c525 100644 --- a/gtk/gtkbookmarksmanager.c +++ b/gtk/gtkbookmarksmanager.c @@ -160,7 +160,7 @@ save_bookmarks (GFile *bookmarks_file, } if (!g_file_replace_contents (bookmarks_file, contents->str, - strlen (contents->str), + contents->len, NULL, FALSE, 0, NULL, NULL, &error)) goto out; |