* src/textview.c
authorLuke Plant <L.Plant.98@cantab.net>
Sat, 29 Nov 2003 13:59:58 +0000 (13:59 +0000)
committerLuke Plant <L.Plant.98@cantab.net>
Sat, 29 Nov 2003 13:59:58 +0000 (13:59 +0000)
        fix compilation for non c99 compilers

src/textview.c

index 8123a5de018f39c7e3026730e05deb7f7c8ea369..ed4530688dbfb318f6faad7ac2303c98a6a9cd3b 100644 (file)
@@ -1821,11 +1821,11 @@ static gboolean uri_security_check(RemoteURI *uri, TextView *textview)
            (!g_strncasecmp(clicked_str, "http:",  5) ||
             !g_strncasecmp(clicked_str, "https:", 6) ||
             !g_strncasecmp(clicked_str, "www.",   4))) {
+               gchar *str;
                retval = FALSE;
 
                /* allow uri->uri    == http://somewhere.com
                   and   clicked_str ==        somewhere.com */
-               gchar *str;
                str = g_strconcat("http://", clicked_str, NULL);
 
                if (!g_strcasecmp(str, uri->uri))