pandad: removed the redundant .c_str() call (#32724)

Removed the redundant .c_str() call
This commit is contained in:
Dean Lee
2024-06-12 16:48:09 +08:00
committed by GitHub
parent e798caa3e5
commit 8065b454c9
+1 -1
View File
@@ -120,7 +120,7 @@ std::vector<std::string> PandaUsbHandle::list() {
libusb_close(handle);
if (ret < 0) { goto finish; }
serials.push_back(std::string((char *)desc_serial, ret).c_str());
serials.push_back(std::string((char *)desc_serial, ret));
}
}