diff options
author | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2014-07-18 18:27:20 +0200 |
---|---|---|
committer | Mathieu Duponchelle <mathieu.duponchelle@opencreed.com> | 2014-07-18 20:23:57 +0200 |
commit | 0d2256b5bd6e57486b3385d911a2853ee017ebc8 (patch) | |
tree | d1cb3a6b7202ea84105646d67c915c98222c7800 | |
parent | 31257a260c73b37300541d42fde54dc5949f5969 (diff) |
xml-formatter: Set errno to 0 before g_ascii_strtoll.
-rw-r--r-- | ges/ges-xml-formatter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ges/ges-xml-formatter.c b/ges/ges-xml-formatter.c index 1e38fda2..38e1699b 100644 --- a/ges/ges-xml-formatter.c +++ b/ges/ges-xml-formatter.c @@ -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; |