From 9b45e8592be0bbfe9c9a2f699416dc4e82569411 Mon Sep 17 00:00:00 2001 From: alllexx88 Date: Thu, 20 Feb 2014 15:53:52 +0200 Subject: [PATCH] "config.txt not found" message fix --- main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index cc4e3e1..e215bdd 100644 --- a/main.cpp +++ b/main.cpp @@ -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); } @@ -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";