Imgtool: Vas Feedback: Changed another charconverter access (nw)

This commit is contained in:
Nathan Woods 2017-07-30 06:51:18 -04:00 committed by Vas Crabb
parent c04cc60702
commit 6b76e4ad57

View File

@ -1114,10 +1114,10 @@ imgtoolerr_t imgtool::partition::cannonicalize_path(uint32_t flags, const char *
// normalize the path into the native character set
std::string converted_path;
imgtool::charconverter *charconverter = (imgtool::charconverter *) get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER);
if (charconverter)
imgtool::charconverter * const converter = reinterpret_cast<imgtool::charconverter * const>(get_info_ptr(IMGTOOLINFO_PTR_CHARCONVERTER));
if (converter)
{
converted_path = charconverter->from_utf8(path);
converted_path = converter->from_utf8(path);
path = converted_path.c_str();
}