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:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user