Commit cc8ee01f authored by Matthias Clasen's avatar Matthias Clasen

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
parent fda53e55
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment