forked from AuroraMiddleware/gtk
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:
parent
fda53e5529
commit
cc8ee01ff6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user