File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
44
55## [ Unreleased]
66
7+
8+ ### Fixed
9+
10+ - dg_ctl fix segfault when create models is called with --output
11+
712### Added
813
914- dg_ctl create models new command line option -o | --output
Original file line number Diff line number Diff line change @@ -1214,7 +1214,7 @@ void create_model::handleCommand(std::vector<std::string> ¶meters)
12141214 break ;
12151215 }
12161216 }
1217- for (auto iter = parameters.begin (); iter != parameters.end (); ++iter )
1217+ for (auto iter = parameters.begin (); iter != parameters.end ();)
12181218 {
12191219 auto &file = *iter;
12201220 if (file == " -o" || file == " --output" )
@@ -1227,6 +1227,7 @@ void create_model::handleCommand(std::vector<std::string> ¶meters)
12271227 }
12281228 continue ;
12291229 }
1230+ ++iter;
12301231 }
12311232
12321233 for (auto const &path : parameters)
You can’t perform that action at this time.
0 commit comments