From 1c1c6688d13c8fd458381a462d1047605a5d4d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 30 Aug 2006 16:15:57 +0000 Subject: [PATCH] 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 --- src/kits/app/Roster.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kits/app/Roster.cpp b/src/kits/app/Roster.cpp index 1f75cd382f..fc30e46f94 100644 --- a/src/kits/app/Roster.cpp +++ b/src/kits/app/Roster.cpp @@ -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;