This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=bf3667add80e91bbdb2f4f2f6fe378f397ce1673

commit bf3667add80e91bbdb2f4f2f6fe378f397ce1673
Author: Guillem Jover <[email protected]>
AuthorDate: Fri Dec 27 18:23:21 2024 +0100

    dselect: Mark assignment inside baselist::kd_search() as a move assignment
    
    Warned-by: coverity
    Cangelog: internal
---
 dselect/basecmds.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc
index 3ac7c16eb..92f7db893 100644
--- a/dselect/basecmds.cc
+++ b/dselect/basecmds.cc
@@ -22,6 +22,8 @@
 #include <config.h>
 #include <compat.h>
 
+#include <utility>
+
 #include <errno.h>
 #include <string.h>
 #include <stdio.h>
@@ -134,7 +136,7 @@ void baselist::kd_search() {
       return;
     }
 
-    searchstring = newsearchstring;
+    searchstring = std::move(newsearchstring);
     dosearch();
   } else
     kd_searchagain();

-- 
Dpkg.Org's dpkg

Reply via email to