Fix undefined behavior in solvespace-cli.

pull/216/head
EvilSpirit 2017-02-15 09:22:34 +07:00 committed by whitequark
parent 41794dbadb
commit 312184505c
1 changed files with 1 additions and 1 deletions

View File

@ -158,8 +158,8 @@ static bool RunCommand(const std::vector<std::string> args) {
} else return false;
};
unsigned width = 0, height = 0;
if(args[1] == "thumbnail") {
unsigned width = 0, height = 0;
auto ParseSize = [&](size_t &argn) {
if(argn + 1 < args.size() && args[argn] == "--size") {
argn++;