Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'edge' into wait4q

  • Loading branch information...
commit baf563bc7e5d9df1d42c3afd223abe8d896e6a6d 2 parents b01bd3f + b8adf48
@logxen authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/libs/Config.cpp
View
6 src/libs/Config.cpp
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.