Skip to content

Commit

Permalink
"config.txt not found" message fix
Browse files Browse the repository at this point in the history
  • Loading branch information
a-l-e-x-1991 committed Feb 20, 2014
1 parent 81892b8 commit 9b45e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ void config::remove_leading_and_trailing_spaces(void) {
value.erase(value.length() - i, std::string::npos);
}
i = 1;
if (value[0] == ' ') {
if (value[0] == ' ') {
for(; i < value.length() && value[i] == ' '; i++);
value.erase(0, i);
}
Expand Down Expand Up @@ -761,7 +761,7 @@ int wmain(int argc, wchar_t* argv[]) {
if (!config.calibre_dir_set)
std::cout << "\"calibre_dir\" field not found, falling back to default value: calibre_dir =\n";
} else
std::cout << "config.txt not found, falling back to default settings:\nextension =\nskip_meta_check = false\n\n";
std::cout << "config.txt not found, falling back to default settings:\nextension =\nskip_meta_check = false\nargs =\ncalibre_dir =\n\n";

if (argc < 3) {
std::cerr << "Not enough arguments\n";
Expand Down

0 comments on commit 9b45e85

Please sign in to comment.