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
This commit is contained in:
cls%seawood.org 1999-10-20 05:40:05 +00:00
Родитель 107b92eecb
Коммит 2628bfcc79
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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;