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
This commit is contained in:
Matthias Clasen 2014-06-28 01:51:24 -04:00
parent fda53e5529
commit cc8ee01ff6

View File

@ -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;