From 94d4e68cbab738ac159ffce381db16746d094a41 Mon Sep 17 00:00:00 2001 From: Kohei Takahashi Date: Wed, 21 Nov 2018 13:38:12 +0900 Subject: [PATCH] Fixed incorrect iterator advancing `args` always doesn't contain program name, so it shouldn't advance the iterator. --- common/src/process_jam_log.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/process_jam_log.cpp b/common/src/process_jam_log.cpp index 8726f10..38ceef9 100644 --- a/common/src/process_jam_log.cpp +++ b/common/src/process_jam_log.cpp @@ -641,7 +641,7 @@ int process_jam_log( const std::vector & args ) std::vector::const_iterator args_i = args.begin(); std::vector::const_iterator args_e = args.end(); - for(++args_i; args_i != args_e; ++args_i) + for(; args_i != args_e; ++args_i) { if ( *args_i == "--echo" ) {