From c3148813f4e8ca01f5154b1ed1452e4875e47faa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 10 Jan 2007 19:59:53 -0500 Subject: ENH: fix warning and code style --- Source/CPack/OSXScriptLauncher.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/CPack/OSXScriptLauncher.cxx b/Source/CPack/OSXScriptLauncher.cxx index d09c12e..7148ca6 100644 --- a/Source/CPack/OSXScriptLauncher.cxx +++ b/Source/CPack/OSXScriptLauncher.cxx @@ -69,10 +69,12 @@ int main(int argc, char* argv[]) return 1; } - OSErr err = noErr; - //create file reference from file spec - if (err = FSpMakeFSRef(&fileSpec, &fileRef)) return err; + OSErr err = FSpMakeFSRef(&fileSpec, &fileRef); + if(err) + { + return err; + } // and then convert the FSRef to a path if ( FSRefMakePath(&fileRef, path, MaximumPathLength) ) -- cgit v0.12