]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_v8] SayPhrase: Coverity 1546153 COPY_INSTEAD_OF_MOVE 2551/head
authorAndrey Volk <andywolk@gmail.com>
Sun, 9 Jun 2024 10:13:43 +0000 (13:13 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 30 Jul 2024 15:24:16 +0000 (18:24 +0300)
src/mod/languages/mod_v8/src/fssession.cpp

index d3bc77ae13bba5ad0997718858391e9c496272a2..2510457175aa48eebd74585154c9b15682c8d9ba 100644 (file)
@@ -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);
                }
        }