Skip to content

Commit

Permalink
fix: missing else statement when checking for client id
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsang committed Sep 25, 2023
1 parent 20105e2 commit 426ccca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion broadcast/broadcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ int main(int argc, char **argv)
{
M_LOG(MODULE_NAME, "Client %d is already subscript to this channel", request.header.client_id);
}
else
{
// store user name
bc_client = NULL;
Expand Down Expand Up @@ -507,4 +508,4 @@ int main(int argc, char **argv)
}
(void)close(fd);
return 0;
}
}

0 comments on commit 426ccca

Please sign in to comment.