Skip to content

Commit 060621e

Browse files
authored
Merge pull request #2553 from signalwire/maria
[mod_mariadb] Coverity 1546237 COPY_INSTEAD_OF_MOVE
2 parents c1354fd + 844cce8 commit 060621e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mod/databases/mod_mariadb/mariadb_dsn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class mariadb_dsn {
8181
std::string value = pair[1];
8282

8383
if ("server" == key || "host" == key) {
84-
_host = value;
84+
_host = std::move(value);
8585
} else if ("uid" == key || "user" == key || "username" == key) {
8686
_user = std::move(value);
8787
} else if ("pwd" == key || "passwd" == key || "password" == key) {

0 commit comments

Comments
 (0)