]> err.no Git - sope/blobdiff - sope-ical/samples/vcfparsetest.m
added ievalrrule tool
[sope] / sope-ical / samples / vcfparsetest.m
index 26289af274b2c4b0dc93efbf034651b186f3af2d..54af86b42b672a6c23f4d0a449927cc51e2614e9 100644 (file)
@@ -103,13 +103,12 @@ int main(int argc, char **argv, char **env)  {
   vcsparsetest *tool;
   int rc;
 
+  pool = [[NSAutoreleasePool alloc] init];
 #if LIB_FOUNDATION_LIBRARY  
   [NSProcessInfo initializeWithArguments:argv count:argc environment:env];
 #endif
   
-  pool = [[NSAutoreleasePool alloc] init];
-  
-  if ((tool = [[vcsparsetest alloc] init])) {
+  if ((tool = [[vcsparsetest alloc] init]) != nil) {
     NS_DURING
       rc = [tool runWithArguments:[[NSProcessInfo processInfo] arguments]];
     NS_HANDLER