QDbus: Fix (!a == b) comparison
! binds to a, and that is wrong here. Change-Id: I746d2b82bbd03635b3aa06abb0c5566f84a03128 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
8fc97fdfc7
commit
4b7cd57719
@ -221,7 +221,7 @@ void QDBusPendingCallPrivate::checkReceivedSignature()
|
||||
return; // no signature to validate against
|
||||
|
||||
// can't use startsWith here because a null string doesn't start or end with an empty string
|
||||
if (!replyMessage.signature().indexOf(expectedReplySignature) == 0) {
|
||||
if (replyMessage.signature().indexOf(expectedReplySignature) != 0) {
|
||||
QString errorMsg = QLatin1String("Unexpected reply signature: got \"%1\", "
|
||||
"expected \"%2\"");
|
||||
replyMessage = QDBusMessage::createError(
|
||||
|
Loading…
Reference in New Issue
Block a user