From 2a2caf2f38927ae94dbc250138b50812f9951a04 Mon Sep 17 00:00:00 2001 From: gewlitys Date: Fri, 17 Oct 2008 22:00:17 +0000 Subject: [PATCH] Do not open contentDir second time. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3093 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/options.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sc2/src/options.c b/sc2/src/options.c index b0f21dd17..3326c5b21 100644 --- a/sc2/src/options.c +++ b/sc2/src/options.c @@ -378,14 +378,6 @@ mountAddonDir (uio_Repository *repository, uio_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. // the former is the dir 'addons', the latter a directory // in that dir.