Skip to content

Commit

Permalink
pandad: removed the redundant .c_str() call (commaai#32724)
Browse files Browse the repository at this point in the history
Removed the redundant .c_str() call
  • Loading branch information
deanlee authored Jun 12, 2024
1 parent e798caa commit 8065b45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/pandad/panda_comms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 8065b45

Please sign in to comment.