From 8b581600a618d0a33f3bcc14b877d55d7b866e6f Mon Sep 17 00:00:00 2001 From: Meep-Eep Date: Mon, 19 May 2008 21:34:49 +0000 Subject: [PATCH] Fix use of unitialised variable. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2981 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/options.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sc2/src/options.c b/sc2/src/options.c index 5eb73af84..95729ecbb 100644 --- a/sc2/src/options.c +++ b/sc2/src/options.c @@ -433,7 +433,6 @@ int loadIndices (uio_DirHandle *dir) { uio_DirList *indices; - int i; indices = uio_getDirList (dir, "", ".rmp$", match_MATCH_REGEX); @@ -451,7 +450,7 @@ loadIndices (uio_DirHandle *dir) uio_DirList_free (indices); /* Return the number of index files loaded. */ - return i; + return indices->numNames; } BOOLEAN