From 3c47eadd28505640113a76c3b82e2216be22dbbe Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sun, 9 Jun 2024 13:13:43 +0300 Subject: [PATCH] [mod_v8] SayPhrase: Coverity 1546153 COPY_INSTEAD_OF_MOVE --- src/mod/languages/mod_v8/src/fssession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/languages/mod_v8/src/fssession.cpp b/src/mod/languages/mod_v8/src/fssession.cpp index d3bc77ae13..2510457175 100644 --- a/src/mod/languages/mod_v8/src/fssession.cpp +++ b/src/mod/languages/mod_v8/src/fssession.cpp @@ -671,7 +671,7 @@ JS_SESSION_FUNCTION_IMPL(SayPhrase) String::Utf8Value str(info[2]); tmp = js_safe_str(*str); if (!zstr(tmp.c_str())) { - phrase_lang = tmp; + phrase_lang = std::move(tmp); } }