bug fix: pointer indirection error while checking cookie value

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1644 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Daniel Reinhold 2002-10-25 11:04:11 +00:00
parent 95574b3621
commit bd2251961c
2 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ _get_next_port_info(team_id team, int32 *cookie, struct port_info *info, size_t
if (cookie == NULL)
return B_BAD_VALUE;
if (*cookie == NULL) {
if (*cookie == 0) {
// return first found
slot = 0;
} else {

View File

@ -667,7 +667,7 @@ _get_next_sem_info(team_id team, int32 *cookie, struct sem_info *info, size_t sz
if (team < 0)
return B_BAD_TEAM_ID;
if (*cookie == NULL) {
if (*cookie == 0) {
// return first found
slot = 0;
}