diff --git a/src/libcode/vx_python3_utils/wchar_argv.cc b/src/libcode/vx_python3_utils/wchar_argv.cc index d0bd156f9..31e4ca692 100644 --- a/src/libcode/vx_python3_utils/wchar_argv.cc +++ b/src/libcode/vx_python3_utils/wchar_argv.cc @@ -206,10 +206,7 @@ for (int j=0; j<_argc; ++j) { // we're using the len array here because // we don't want to call m_strlen more than // once on each argv value - if (_argv) { - string arg_str = _argv[j]; - len[j] = arg_str.length(); - } + if (_argv && _argv[j]) len[j] = m_strlen(_argv[j]); argv_len += len[j];