Do not open contentDir second time.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3093 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2008-10-17 22:00:17 +00:00
parent 2f7bbc1d5f
commit 2a2caf2f38
-8
View File
@@ -378,14 +378,6 @@ mountAddonDir (uio_Repository *repository, uio_MountHandle *contentMountHandle,
mountHandle = contentMountHandle; mountHandle = contentMountHandle;
} }
contentDir = uio_openDir (repository, "/", 0);
if (contentDir == NULL)
{
log_add (log_Fatal, "Fatal error: Could not open content dir: %s",
strerror (errno));
exit (EXIT_FAILURE);
}
// NB: note the difference between addonsDir and addonDir. // NB: note the difference between addonsDir and addonDir.
// the former is the dir 'addons', the latter a directory // the former is the dir 'addons', the latter a directory
// in that dir. // in that dir.