]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE 2553/head
authorAndrey Volk <andywolk@gmail.com>
Thu, 6 Jun 2024 10:07:43 +0000 (13:07 +0300)
committerAndrey Volk <andywolk@gmail.com>
Tue, 30 Jul 2024 16:16:51 +0000 (19:16 +0300)
src/mod/databases/mod_mariadb/mariadb_dsn.cpp

index 06091eb4696536194fc2d881f63cdb9bf093b66b..aa7fb8941221b26da4545c016f49401533b1eccf 100644 (file)
@@ -81,7 +81,7 @@ public:
                                        std::string value = pair[1];
 
                                        if ("server" == key || "host" == key) {
-                                               _host = value;
+                                               _host = std::move(value);
                                        } else if ("uid" == key || "user" == key || "username" == key) {
                                                _user = std::move(value);
                                        } else if ("pwd" == key || "passwd" == key || "password" == key) {