Fix undefined behavior in solvespace-cli.
parent
41794dbadb
commit
312184505c
|
@ -158,8 +158,8 @@ static bool RunCommand(const std::vector<std::string> args) {
|
||||||
} else return false;
|
} else return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
unsigned width = 0, height = 0;
|
||||||
if(args[1] == "thumbnail") {
|
if(args[1] == "thumbnail") {
|
||||||
unsigned width = 0, height = 0;
|
|
||||||
auto ParseSize = [&](size_t &argn) {
|
auto ParseSize = [&](size_t &argn) {
|
||||||
if(argn + 1 < args.size() && args[argn] == "--size") {
|
if(argn + 1 < args.size() && args[argn] == "--size") {
|
||||||
argn++;
|
argn++;
|
||||||
|
|
Loading…
Reference in New Issue