axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ros...@apache.org
Subject cvs commit: ws-axis/c/src/common AxisConfig.h AxisConfig.cpp
Date Sat, 11 Oct 2003 14:47:16 GMT
roshan      2003/10/11 07:47:16

  Modified:    c/src/common AxisConfig.h AxisConfig.cpp
  Log:
  fixed the following problem: The array named value contained the previous value each time
it enters a new loop. Fixed this problem
  
  Revision  Changes    Path
  1.7       +1 -1      ws-axis/c/src/common/AxisConfig.h
  
  Index: AxisConfig.h
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisConfig.h,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AxisConfig.h	7 Oct 2003 07:58:34 -0000	1.6
  +++ AxisConfig.h	11 Oct 2003 14:47:15 -0000	1.7
  @@ -19,7 +19,7 @@
           char* GetWsddFilePath();
           char* GetAxisLogPath();
           
  -    private:
  +    private:		
           int ReadConfFile();
           char m_WsddFilePath[CONFBUFFSIZE];
           char m_AxisLogPath[CONFBUFFSIZE];
  
  
  
  1.6       +9 -2      ws-axis/c/src/common/AxisConfig.cpp
  
  Index: AxisConfig.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/common/AxisConfig.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- AxisConfig.cpp	10 Oct 2003 05:13:13 -0000	1.5
  +++ AxisConfig.cpp	11 Oct 2003 14:47:15 -0000	1.6
  @@ -1,5 +1,6 @@
   #include "AxisConfig.h"
   #include "GDefine.h"
  +#include "AxisUtils.h"
   #include <stdlib.h>
   #include <stdio.h>
   #include <string.h>
  @@ -20,7 +21,7 @@
       char sNewConfPath[CONFBUFFSIZE] = {0};
       char line[CONFBUFFSIZE] = {0};
       char key[CONFBUFFSIZE] = {0};
  -    char value[CONFBUFFSIZE] = {0};
  +	char value[CONFBUFFSIZE] = {0};
   
   	sConfPath = getenv("AXIS_HOME");
   	if (!sConfPath) return FAIL;
  @@ -40,6 +41,12 @@
           }
           k += 1;
           int j=0;
  +		
  +		/*
  +		 *To clear the character array named value
  +		 */
  +		AxisUtils::clearArray(value, CONFBUFFSIZE);
  +
           while(line[k] != '\n')
           {
               value[j]=line[k];
  @@ -63,4 +70,4 @@
   char* AxisConfig::GetAxisLogPath()
   {
       return m_sAxisLogPath;
  -}
  \ No newline at end of file
  +}
  
  
  

Mime
View raw message