Revision
608
Author
wsiegrist@apple.com
Date
2009-10-29 13:46:02 -0700 (Thu, 29 Oct 2009)

Log Message

Fix some potentially-used-uninitialized errors

Modified Paths

Diff

Modified: trunk/darwinxref/plugins/exportProject.c (607 => 608)


--- 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 (607 => 608)


--- 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;