Skip to content

Commit

Permalink
fix shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
zugz committed Aug 13, 2018
1 parent 2c1ce9c commit 1c1ebd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toxcore/group.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,13 +521,13 @@ static int note_peer_active(Group_Chats *g_c, uint32_t groupnumber, uint16_t pee
g->frozen[frozen_index] = g->frozen[g->numfrozen];
}

Group_Peer *temp = (Group_Peer *)realloc(g->frozen, sizeof(Group_Peer) * (g->numfrozen));
Group_Peer *frozen_temp = (Group_Peer *)realloc(g->frozen, sizeof(Group_Peer) * (g->numfrozen));

if (temp == nullptr) {
if (frozen_temp == nullptr) {
return -1;
}

g->frozen = temp;
g->frozen = frozen_temp;
}

g->need_send_name = true;
Expand Down

0 comments on commit 1c1ebd5

Please sign in to comment.