[darwinbuild-changes] [461] branches/PR-6493844/darwinup/Depot.cpp

source_changes at macosforge.org source_changes at macosforge.org
Tue Jan 13 16:07:17 PST 2009


Revision: 461
          http://trac.macosforge.org/projects/darwinbuild/changeset/461
Author:   wsiegrist at apple.com
Date:     2009-01-13 16:07:16 -0800 (Tue, 13 Jan 2009)
Log Message:
-----------
Make the depot fd default to -1 to avoid using it uninitialized in Depot::lock()

Modified Paths:
--------------
    branches/PR-6493844/darwinup/Depot.cpp

Modified: branches/PR-6493844/darwinup/Depot.cpp
===================================================================
--- branches/PR-6493844/darwinup/Depot.cpp	2009-01-13 23:59:11 UTC (rev 460)
+++ branches/PR-6493844/darwinup/Depot.cpp	2009-01-14 00:07:16 UTC (rev 461)
@@ -50,6 +50,8 @@
 }
 
 Depot::Depot(const char* prefix) {
+	m_lock_fd = -1;
+
 	asprintf(&m_depot_path,    "%s/.DarwinDepot",  prefix);
 	asprintf(&m_database_path, "%s/Database-V100", m_depot_path);
 	asprintf(&m_archives_path, "%s/Archives",      m_depot_path);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20090113/57090606/attachment.html>


More information about the darwinbuild-changes mailing list