Changeset 22770
- Timestamp:
- 2010-08-24T19:46:29+12:00 (14 years ago)
- Location:
- main/trunk/greenstone2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/common-src/src/lib/cfgread.cpp
r20710 r22770 44 44 int foundeq = 0; 45 45 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 } 48 53 if (foundeq) value.push_back(c); 49 54 else key.push_back(c); -
main/trunk/greenstone2/runtime-src/src/w32server/settings.cpp
r20949 r22770 438 438 while (read_ini_line(conf, key, value) >= 0) { 439 439 if (key.empty()) continue; 440 if (value.empty() ) {440 if (value.empty() && starts_with(key, "[") && ends_with(key, "]")) { 441 441 // should be a section title 442 442 section = key;
Note:
See TracChangeset
for help on using the changeset viewer.