Permalink
Browse files

Merge branch 'edge' into wait4q

  • Loading branch information...
2 parents b01bd3f + b8adf48 commit baf563bc7e5d9df1d42c3afd223abe8d896e6a6d @logxen committed May 29, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/libs/Config.cpp
View
@@ -75,7 +75,7 @@ void Config::set_string( string setting, string value ){
// For each line
do {
c = fgetc (lp);
- if (c == '\n'){
+ if (c == '\n' || c == EOF){
// We have a new line
if( buffer[0] == '#' ){ buffer.clear(); continue; } // Ignore comments
if( buffer.length() < 3 ){ buffer.clear(); continue; } //Ignore empty lines
@@ -141,7 +141,7 @@ ConfigValue* Config::value(vector<uint16_t> check_sums){
// For each line
do {
c = fgetc (lp);
- if (c == '\n'){
+ if (c == '\n' || c == EOF){
// We have a new line
if( buffer[0] == '#' ){ buffer.clear(); continue; } // Ignore comments
if( buffer.length() < 3 ){ buffer.clear(); continue; } //Ignore empty lines
@@ -224,7 +224,7 @@ void Config::get_module_list(vector<uint16_t>* list, uint16_t family){
// For each line
do {
c = fgetc (lp);
- if (c == '\n'){
+ if (c == '\n' || c == EOF){
// We have a new line
if( buffer[0] == '#' ){ buffer.clear(); continue; } // Ignore comments

0 comments on commit baf563b

Please sign in to comment.