From 312184505c2b5fe85a77437084f9a189c6c83306 Mon Sep 17 00:00:00 2001 From: EvilSpirit Date: Wed, 15 Feb 2017 09:22:34 +0700 Subject: [PATCH] Fix undefined behavior in solvespace-cli. --- src/platform/climain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/climain.cpp b/src/platform/climain.cpp index c17a9269..e7023621 100644 --- a/src/platform/climain.cpp +++ b/src/platform/climain.cpp @@ -158,8 +158,8 @@ static bool RunCommand(const std::vector 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++;