From 2628bfcc79c8e47f6584ac8ae8dd962c4b90b2fc Mon Sep 17 00:00:00 2001 From: "cls%seawood.org" Date: Wed, 20 Oct 1999 05:40:05 +0000 Subject: [PATCH] Some compilers complain if you declare variables after a potential goto call so move the declarations to the top of the function. Should fix the linux libc5 SM-Ports tinderbox & gcc 2.95 builds. a=mscott --- webshell/embed/gtk/lib/GtkMozillaContainer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webshell/embed/gtk/lib/GtkMozillaContainer.cpp b/webshell/embed/gtk/lib/GtkMozillaContainer.cpp index be2a29fa0c3d..8a09f30f0289 100644 --- a/webshell/embed/gtk/lib/GtkMozillaContainer.cpp +++ b/webshell/embed/gtk/lib/GtkMozillaContainer.cpp @@ -435,6 +435,8 @@ GtkMozillaContainer::StartStream(const char *base_url, nsresult rv = NS_OK; nsIURI* url = nsnull; nsIContentViewer* viewer = nsnull; + nsString url_str(base_url); + nsIInputStream *istream = NULL; NS_WITH_SERVICE(nsIIOService, serv, kIOServiceCID, &rv); if (NS_FAILED(rv)) @@ -445,12 +447,10 @@ GtkMozillaContainer::StartStream(const char *base_url, goto error; NS_ADDREF(mStream); /* Own this */ - nsIInputStream *istream = NULL; rv = CallQueryInterface(mStream, &istream); if (NS_FAILED(rv)) goto error; - nsString url_str(base_url); rv = NS_NewURI(&url, url_str, NULL); if (NS_FAILED(rv)) goto error;