From 844cce8595a9221e2620e1d61a4171a6a6f85524 Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Thu, 6 Jun 2024 13:07:43 +0300 Subject: [PATCH] [mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE --- src/mod/databases/mod_mariadb/mariadb_dsn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/databases/mod_mariadb/mariadb_dsn.cpp b/src/mod/databases/mod_mariadb/mariadb_dsn.cpp index 06091eb469..aa7fb89412 100644 --- a/src/mod/databases/mod_mariadb/mariadb_dsn.cpp +++ b/src/mod/databases/mod_mariadb/mariadb_dsn.cpp @@ -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) {