diff --git a/modules/core/src/command_line_parser.cpp b/modules/core/src/command_line_parser.cpp index 0fa3304889..2818e75ac8 100644 --- a/modules/core/src/command_line_parser.cpp +++ b/modules/core/src/command_line_parser.cpp @@ -65,7 +65,7 @@ static void from_str(const String& str, int type, void* dst) { std::string temp; ss >> temp; - *(bool*) = temp == "true"; + *(bool*) dst = temp == "true"; } else if( type == Param::UNSIGNED_INT ) ss >> *(unsigned*)dst;