Make sure "otherTeam" is -1 when it's not found in the reply.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18709 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
60e0ea9f7f
commit
1c1c6688d1
@ -1442,8 +1442,8 @@ BRoster::_AddApplication(const char *mimeSig, const entry_ref *ref,
|
||||
} else {
|
||||
if (reply.FindInt32("error", &error) != B_OK)
|
||||
error = B_ERROR;
|
||||
if (otherTeam)
|
||||
reply.FindInt32("other_team", otherTeam);
|
||||
if (otherTeam && reply.FindInt32("other_team", otherTeam) != B_OK)
|
||||
*otherTeam = -1;
|
||||
}
|
||||
}
|
||||
return error;
|
||||
|
Loading…
Reference in New Issue
Block a user