Commit 9b96e319 authored by Matthias Clasen's avatar Matthias Clasen

Don't assert too much

parent e4b51040
......@@ -1693,9 +1693,7 @@ g_bookmark_file_load_from_data (GBookmarkFile *bookmark,
gboolean retval;
g_return_val_if_fail (bookmark != NULL, FALSE);
g_return_val_if_fail (data != NULL, FALSE);
g_return_val_if_fail (length != 0, FALSE);
if (length == (gsize) -1)
length = strlen (data);
......@@ -1704,7 +1702,7 @@ g_bookmark_file_load_from_data (GBookmarkFile *bookmark,
g_bookmark_file_clear (bookmark);
g_bookmark_file_init (bookmark);
}
parse_error = NULL;
retval = g_bookmark_file_parse (bookmark, data, length, &parse_error);
if (!retval)
......
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