[Xfce4-commits] <midori:master> Don't modify const gchar* in midori_view_get_uri_extension
Christian Dywan
noreply at xfce.org
Sun Mar 18 09:34:03 CET 2012
Updating branch refs/heads/master
to f3af1983ed855b9e23f8b1c7c3859220a0915c30 (commit)
from a3d8a5aa94c5643a1aa725bb7ae0f44b16b28511 (commit)
commit f3af1983ed855b9e23f8b1c7c3859220a0915c30
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Mar 18 08:39:14 2012 +0100
Don't modify const gchar* in midori_view_get_uri_extension
Fixes: https://bugs.launchpad.net/midori/+bug/957678
midori/midori-view.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index f038ca7..670a359 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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);
}
More information about the Xfce4-commits
mailing list