summaryrefslogtreecommitdiffstats
path: root/Source/CPack/OSXScriptLauncher.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-01-11 00:59:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-01-11 00:59:53 (GMT)
commitc3148813f4e8ca01f5154b1ed1452e4875e47faa (patch)
treeceac58db15a865e94d5db8826f3c1b76060bc170 /Source/CPack/OSXScriptLauncher.cxx
parentf015e1ff0345e5ace58d4df0ea4bfc09b5f4d760 (diff)
downloadCMake-c3148813f4e8ca01f5154b1ed1452e4875e47faa.zip
CMake-c3148813f4e8ca01f5154b1ed1452e4875e47faa.tar.gz
CMake-c3148813f4e8ca01f5154b1ed1452e4875e47faa.tar.bz2
ENH: fix warning and code style
Diffstat (limited to 'Source/CPack/OSXScriptLauncher.cxx')
-rw-r--r--Source/CPack/OSXScriptLauncher.cxx8
1 files 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) )