Browse Source

Merge pull request #2553 from signalwire/maria

[mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE
Andrey Volk 3 months ago
parent
commit
060621e09d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mod/databases/mod_mariadb/mariadb_dsn.cpp

+ 1 - 1
src/mod/databases/mod_mariadb/mariadb_dsn.cpp

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