Remove the trailing double-underscore from a couple env vars

This commit is contained in:
Chris Robinson 2012-02-19 17:24:01 -08:00
parent 426f0273cb
commit 40bb8bd9dc

View File

@ -498,7 +498,7 @@ static void alc_init(void)
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
ZScale = -1.0f; ZScale = -1.0f;
str = getenv("__ALSOFT_TRAP_ERROR"); str = getenv("ALSOFT_TRAP_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
{ {
TrapALError = AL_TRUE; TrapALError = AL_TRUE;
@ -506,11 +506,11 @@ static void alc_init(void)
} }
else else
{ {
str = getenv("__ALSOFT_TRAP_AL_ERROR"); str = getenv("ALSOFT_TRAP_AL_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
TrapALError = AL_TRUE; TrapALError = AL_TRUE;
str = getenv("__ALSOFT_TRAP_ALC_ERROR"); str = getenv("ALSOFT_TRAP_ALC_ERROR");
if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1)) if(str && (strcasecmp(str, "true") == 0 || strtol(str, NULL, 0) == 1))
TrapALCError = ALC_TRUE; TrapALCError = ALC_TRUE;
} }
@ -723,7 +723,7 @@ static void alc_initconfig(void)
} }
InitEffect(&ForcedEffect); InitEffect(&ForcedEffect);
str = getenv("__ALSOFT_DEFAULT_REVERB"); str = getenv("ALSOFT_DEFAULT_REVERB");
if(str && str[0]) if(str && str[0])
GetReverbEffect(str, &ForcedEffect); GetReverbEffect(str, &ForcedEffect);
else if(ConfigValueStr(NULL, "default-reverb", &str)) else if(ConfigValueStr(NULL, "default-reverb", &str))