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:
@@ -1442,8 +1442,8 @@ BRoster::_AddApplication(const char *mimeSig, const entry_ref *ref,
|
|||||||
} else {
|
} else {
|
||||||
if (reply.FindInt32("error", &error) != B_OK)
|
if (reply.FindInt32("error", &error) != B_OK)
|
||||||
error = B_ERROR;
|
error = B_ERROR;
|
||||||
if (otherTeam)
|
if (otherTeam && reply.FindInt32("other_team", otherTeam) != B_OK)
|
||||||
reply.FindInt32("other_team", otherTeam);
|
*otherTeam = -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return error;
|
return error;
|
||||||
|
|||||||
Reference in New Issue
Block a user