1
1

Remove a warning about an unused variable.

This commit was SVN r8755.
Этот коммит содержится в:
George Bosilca 2006-01-19 15:52:17 +00:00
родитель c4757e3bf3
Коммит 29684dd800

@ -761,7 +761,7 @@ int mca_base_param_finalize(void)
static int read_files(char *file_list) static int read_files(char *file_list)
{ {
int i, index, count; int i, count;
char **files; char **files;
/* Iterate through all the files passed in -- read them in reverse /* Iterate through all the files passed in -- read them in reverse
@ -774,8 +774,12 @@ static int read_files(char *file_list)
#ifdef __WINDOWS__ #ifdef __WINDOWS__
/* Windows use : as a delimiter between the drive name and the path /* Windows use : as a delimiter between the drive name and the path
* Hopefuly, the drive name is limitted to one letter, so we can parse * Hopefuly, the drive name is limitted to one letter, so we can parse
* the files array as merge all of them. * the files array and merge all one letter char* with the next. I hope
* nobody plan to have a one letter path on UNIX.
*/ */
{
int index;
for( index = i = 0; i < count; i++ ) { for( index = i = 0; i < count; i++ ) {
if( (1 == strlen(files[i])) && (isalpha(files[i][0])) ) { if( (1 == strlen(files[i])) && (isalpha(files[i][0])) ) {
int length = 4 + strlen(files[i+1]); int length = 4 + strlen(files[i+1]);
@ -791,7 +795,8 @@ static int read_files(char *file_list)
} }
} }
count = index; count = index;
files[index] = NULL; files[index] = NULL; /* force the final NULL */
}
#endif #endif
for (i = count - 1; i >= 0; --i) { for (i = count - 1; i >= 0; --i) {