Skip to content

Commit

Permalink
BareosSocket: replaced one occurance of compare() with == for a std::…
Browse files Browse the repository at this point in the history
…string
  • Loading branch information
franku committed Sep 2, 2018
1 parent ba5ef40 commit 8dbbac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/lib/bsock.cc
Expand Up @@ -566,7 +566,7 @@ bool BareosSocket::IsCleartextBareosHello()
if (ret == 10) {
std::string hello("Hello ");
std::string received(&buffer[4]);
if (!hello.compare(received)) {
if (hello == received) {
return true;
}
}
Expand Down

0 comments on commit 8dbbac5

Please sign in to comment.