[darwinbuild-changes] [608] trunk/darwinxref/plugins

source_changes at macosforge.org source_changes at macosforge.org
Thu Oct 29 13:46:05 PDT 2009


Revision: 608
          http://trac.macosforge.org/projects/darwinbuild/changeset/608
Author:   wsiegrist at apple.com
Date:     2009-10-29 13:46:02 -0700 (Thu, 29 Oct 2009)
Log Message:
-----------
Fix some potentially-used-uninitialized errors

Modified Paths:
--------------
    trunk/darwinxref/plugins/exportProject.c
    trunk/darwinxref/plugins/register.c

Modified: trunk/darwinxref/plugins/exportProject.c
===================================================================
--- trunk/darwinxref/plugins/exportProject.c	2009-10-29 19:52:56 UTC (rev 607)
+++ trunk/darwinxref/plugins/exportProject.c	2009-10-29 20:46:02 UTC (rev 608)
@@ -41,7 +41,7 @@
 	if (count > 2)  return -1;
 	int xml = 0, i;
 	CFMutableDictionaryRef dict, preplist;
-	CFDictionaryRef project;
+	CFDictionaryRef project = NULL;
 	CFStringRef projname;
 	CFArrayRef builds;
 	const void *ssites, *bsites;

Modified: trunk/darwinxref/plugins/register.c
===================================================================
--- trunk/darwinxref/plugins/register.c	2009-10-29 19:52:56 UTC (rev 607)
+++ trunk/darwinxref/plugins/register.c	2009-10-29 20:46:02 UTC (rev 608)
@@ -607,7 +607,7 @@
 }
 
 int register_files(char* build, char* project, char* path) {
-	int res;
+	int res = 0;
 	int loaded = 0;
 	
 	create_tables();
@@ -697,7 +697,7 @@
 }
 
 int register_files_from_stdin(char* build, char* project, char* path) {
-	int res;
+	int res = 0;
 	int loaded = 0;
 	char *line;
 	size_t size;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20091029/83754422/attachment-0001.html>


More information about the darwinbuild-changes mailing list