зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
107b92eecb
Коммит
2628bfcc79
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче