Don't modify const gchar* in midori_view_get_uri_extension

Fixes: https://bugs.launchpad.net/midori/+bug/957678
This commit is contained in:
Christian Dywan 2012-03-18 08:39:14 +01:00
parent a3d8a5aa94
commit f3af1983ed

View file

@ -5131,7 +5131,7 @@ midori_view_can_save (MidoriView* view)
return FALSE;
}
static gchar*
/* static */ gchar*
midori_view_get_uri_extension (const gchar* uri)
{
gchar* slash;
@ -5160,7 +5160,6 @@ midori_view_get_uri_extension (const gchar* uri)
while (*ext_end && g_ascii_isalnum (*ext_end))
ext_end++;
*ext_end = 0;
return g_strdup (period);
}