Skip to content

Commit

Permalink
Modified illgal variable name (environ -> env_var)
Browse files Browse the repository at this point in the history
  • Loading branch information
nrsiward committed Jul 8, 2019
1 parent c16ff5b commit 744b03b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions preprocessor/usecpp.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ char GetPrefs(struct fppTag **tagptr, char **string)
unsigned Length_U;
/* char *PrefsBuffer_PC;*//*NOT USED*/
char ret= 0;
char *environ;
char *env_var;

*string = NULL;

Expand All @@ -321,11 +321,11 @@ char GetPrefs(struct fppTag **tagptr, char **string)
}

#ifdef GDLPP
if((environ = getenv("GDLPP_PREFS"))) {
if((env_var = getenv("GDLPP_PREFS"))) {
#else
if((environ = getenv("CPP_PREFS"))) {
if((env_var = getenv("CPP_PREFS"))) {
#endif
ret= !DoString(tagptr, environ);
ret= !DoString(tagptr, env_var);
if(ret && *string)
free( *string );
}
Expand Down

1 comment on commit 744b03b

@bgermann
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you had taken #6 this would have been fixed a year ago...

Please sign in to comment.