Applied patch from Chis Evans to fix reading of /etc/conf.3dfx/voodoo3.
This commit is contained in:
@@ -113,7 +113,7 @@ static void loadEnvFile() {
|
||||
char data[128];
|
||||
char *env, *val;
|
||||
envitem *item;
|
||||
int first=1;
|
||||
int first_err=1;
|
||||
|
||||
if (envinit) return;
|
||||
envinit=1;
|
||||
@@ -125,12 +125,13 @@ static void loadEnvFile() {
|
||||
if (*data=='\n') continue;
|
||||
val=strchr(data, '=');
|
||||
if (!val) {
|
||||
if (first) {
|
||||
fprintf(stderr, "In config file /etc/conf.3dfx/voodoo3:\n");
|
||||
first=0;
|
||||
if (first_err) {
|
||||
fprintf(stderr, "In config file /etc/conf.3dfx/voodoo3:\n");
|
||||
first_err=0;
|
||||
}
|
||||
fprintf(stderr, "Malformed line: %s\n", data);
|
||||
continue;
|
||||
|
||||
}
|
||||
*val=0;
|
||||
env=data;
|
||||
|
||||
Reference in New Issue
Block a user