From 42fa80ece2236f44ebaafe88192b7aa8d8490e78 Mon Sep 17 00:00:00 2001 From: "tor%cs.brown.edu" Date: Wed, 16 Feb 2000 05:16:29 +0000 Subject: [PATCH] SUNWspro doesn't like declaring a variable inside an "if" statement. r=alecf git-svn-id: svn://10.0.0.236/trunk@61064 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xpfe/bootstrap/nsAppRunner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/xpfe/bootstrap/nsAppRunner.cpp b/mozilla/xpfe/bootstrap/nsAppRunner.cpp index b2f50c30983..d4b0712c8ec 100644 --- a/mozilla/xpfe/bootstrap/nsAppRunner.cpp +++ b/mozilla/xpfe/bootstrap/nsAppRunner.cpp @@ -747,7 +747,8 @@ int main(int argc, char* argv[]) } #ifdef DETECT_WEBSHELL_LEAKS - if ( unsigned long count = NS_TotalWebShellsInExistence() ) { + unsigned long count; + if ( count = NS_TotalWebShellsInExistence() ) { printf("XXX WARNING: Number of webshells being leaked: %d \n", count); } #endif