Skip to content

Commit

Permalink
cid#463587 unnecessary temp variable
Browse files Browse the repository at this point in the history
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I03929b4590a85eb9250c93d0cff7837f9bba9cf2
  • Loading branch information
caolanm authored and vmiklos committed Jan 13, 2025
1 parent 2a2d19f commit c867850
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kit/ChildSession.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ std::string extractCertificate(const std::string & certificate)
if (pos2 == std::string::npos)
return result;

pos1 = pos1 + std::string(header).length();
pos1 = pos1 + header.length();
pos2 = pos2 - pos1;

return certificate.substr(pos1, pos2);
Expand Down

0 comments on commit c867850

Please sign in to comment.