Ignore:
Timestamp:
2010-08-24T19:46:29+12:00 (14 years ago)
Author:
ak19
Message:

More changes for ticket 152: making the collectdir moveable. When using server.exe, if GLI was last shutdown when another collectdir was active, this needs to be read in from the user config.xml by GLI, and server.exe needs to use it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/src/lib/cfgread.cpp

    r20710 r22770  
    4444  int foundeq = 0;
    4545  while (!filein.eof() && c != '\n') {
    46     if (!foundeq && c == '=') {foundeq = 1; filein.get(c);}
    47 
     46    if (!foundeq && c == '=') {
     47        foundeq = 1;
     48        filein.get(c);
     49        // now that we've read the next character, we should check it's not \n
     50        // if it is, then we had a line of the form 'hostIP=', and we should exit the loop
     51        if (c == '\n') break;       
     52    }
    4853    if (foundeq) value.push_back(c);
    4954    else key.push_back(c);
Note: See TracChangeset for help on using the changeset viewer.