Skip to content
Snippets Groups Projects
Commit 0d2256b5 authored by Mathieu Duponchelle's avatar Mathieu Duponchelle
Browse files

xml-formatter: Set errno to 0 before g_ascii_strtoll.

parent 31257a26
No related branches found
No related tags found
No related merge requests found
......@@ -391,6 +391,7 @@ _parse_layer (GMarkupParseContext * context, const gchar * element_name,
goto wrong_properties;
}
errno = 0;
priority = g_ascii_strtoll (strprio, NULL, 10);
if (errno)
goto convertion_failed;
......@@ -451,6 +452,7 @@ _parse_clip (GMarkupParseContext * context,
if (!g_type_is_a (type, GES_TYPE_CLIP))
goto wrong_type;
errno = 0;
track_types = g_ascii_strtoll (strtrack_types, NULL, 10);
if (errno)
goto convertion_failed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment