Revision
299
Author
kevin
Date
2006-10-04 02:02:27 -0700 (Wed, 04 Oct 2006)

Log Message

- fixed crasher

Modified Paths

Diff

Modified: trunk/darwinxref/plugins/resolveDeps.c (298 => 299)


--- trunk/darwinxref/plugins/resolveDeps.c	2005-11-17 01:00:48 UTC (rev 298)
+++ trunk/darwinxref/plugins/resolveDeps.c	2006-10-04 09:02:27 UTC (rev 299)
@@ -45,7 +45,7 @@
 
 	if(count == 1) {
 	  project = strdup_cfstr(CFArrayGetValueAtIndex(argv, 0));
-	} else {
+	} else if (count > 1) {
 	  project = strdup_cfstr(CFArrayGetValueAtIndex(argv, 1));
 	  if(CFEqual(CFSTR("-commit"), CFArrayGetValueAtIndex(argv, 0)))
 	    commit = 1;