[darwinbuild-changes] [299] trunk/darwinxref/plugins/resolveDeps.c

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 02:02:27 PDT 2006


Revision: 299
          http://trac.macosforge.org/projects/darwinbuild/changeset/299
Author:   kevin
Date:     2006-10-04 02:02:27 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
- fixed crasher

Modified Paths:
--------------
    trunk/darwinxref/plugins/resolveDeps.c

Modified: trunk/darwinxref/plugins/resolveDeps.c
===================================================================
--- 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;

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/8d42db15/attachment.html


More information about the darwinbuild-changes mailing list