Don't modify const gchar* in midori_view_get_uri_extension
Fixes: https://bugs.launchpad.net/midori/+bug/957678
This commit is contained in:
parent
a3d8a5aa94
commit
f3af1983ed
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue