From 52a61294f9fe0af9db299b8958f82e3a320fc12f Mon Sep 17 00:00:00 2001 From: John Halley Gotway Date: Thu, 17 Oct 2024 16:02:06 +0000 Subject: [PATCH] Per #2673, try again ci-skip-unit --- src/libcode/vx_python3_utils/wchar_argv.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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];