Fix for bug in reading drivers from configfile.
This commit is contained in:
+4
-5
@@ -357,14 +357,14 @@ process_configfile ( char *configfile )
|
||||
// use the driver list from the config file.
|
||||
if( num_drivers == 0 ) {
|
||||
// read the drivernames
|
||||
s = ""; // fill with anything
|
||||
|
||||
while( s ) {
|
||||
while( 1 ) {
|
||||
s = config_get_string( "server", "driver", num_drivers, "" );
|
||||
if( s ) {
|
||||
if( !s || s[0] == 0 )
|
||||
break;
|
||||
|
||||
drivernames[num_drivers] = malloc(strlen(s)+1);
|
||||
driverfilenames[num_drivers] = malloc(1);
|
||||
driverfilenames[num_drivers] = malloc(strlen(s)+1);
|
||||
driverargs[num_drivers] = malloc(1);
|
||||
|
||||
strcpy( drivernames[num_drivers], s );
|
||||
@@ -374,7 +374,6 @@ process_configfile ( char *configfile )
|
||||
num_drivers++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Now read the driver options that the server needs
|
||||
// Drivers can read their own options later...
|
||||
|
||||
Reference in New Issue
Block a user