gst/gsturi.c: Don't segfault on input like "tel:+1-123-555-1234".

Original commit message from CVS:
* gst/gsturi.c:
Don't segfault on input like "tel:+1-123-555-1234".
This commit is contained in:
Stefan Kost 2008-08-28 10:45:04 +00:00
parent c17a8ce88a
commit 4eebee56fd
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2008-08-28 Stefan Kost <ensonic@users.sf.net>
* gst/gsturi.c:
Don't segfault on input like "tel:+1-123-555-1234".
2008-08-27 Stefan Kost <ensonic@users.sf.net>
* gst/gstobject.c:

View file

@ -424,6 +424,8 @@ gst_uri_get_location (const gchar * uri)
g_return_val_if_fail (gst_uri_is_valid (uri), NULL);
colon = strstr (uri, "://");
if (!colon)
return NULL;
unescaped = unescape_string (colon + 3, "/");