commit f78bafd6688c4d9be39cf270f73711e5763d91b4
parent 7719829ee0a638698cfd2cb92effeec519f47949
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date: Sun, 6 Dec 2020 21:57:36 +0100
lmerge: fix iterating over bad variable (argv instead of arg)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lmerge/src/lmerge.cpp b/lmerge/src/lmerge.cpp
@@ -117,7 +117,7 @@ int main( int argc, char const *const *argv )
auto e_opts = std::end( opts );
char const *arg = argv[1]; assert( argc > 0 );
- for( int iarg = 1; iarg != argc; ++iarg, ++argv )
+ for( int iarg = 1; iarg != argc; ++iarg, ++arg )
{
auto error = parse_cmd_opt( arg, b_opts, e_opts );
switch( error )