FLAM Issue Tracker - CLE/P
View Issue Details
0000541CLE/P1. CLEpublic2014-08-13 11:162014-08-13 11:26
Falk Reichbott 
Falk Reichbott 
immediatemajorsometimes
resolvedfixed 
GeneralGeneralGeneral
1.1 
1.11.1 
0000541: Enviroment variable to define the config file don't work properly
Sometime the definition of the config file name over the environment variable works fine sometimes not!
No tags attached.
Issue History
2014-08-13 11:16Falk ReichbottNew Issue
2014-08-13 11:16Falk ReichbottStatusnew => assigned
2014-08-13 11:16Falk ReichbottAssigned To => Falk Reichbott
2014-08-13 11:26Falk ReichbottNote Added: 0000593
2014-08-13 11:26Falk ReichbottStatusassigned => resolved
2014-08-13 11:26Falk ReichbottFixed in Version => 1.1
2014-08-13 11:26Falk ReichbottResolutionopen => fixed
2014-08-13 11:27Falk ReichbottNote View State: 0000593: public

Notes
(0000593)
Falk Reichbott   
2014-08-13 11:26   
The reason the conversion of the program name to uppercase. The zero termination was missing. Based on that the program name was sometimes correct and sometimes not.

   for (i=0;pcPgm[i] && i<(sizeof(acPgm)-1);i++) acPgm[i]=toupper(pcPgm[i]);
   acPgm[i]=0;/*this line was missing*/
   sprintf(acEnv,"%s_CONFIG_FILE",acPgm);
   pcFil=getenv(acEnv);

Additional: the used config file is now written to pfOut.