Skip to content

Commit

Permalink
assign value right away.
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed May 3, 2020
1 parent f185306 commit e533f4c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions toxav/rtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ void handle_rtp_packet(Tox *tox, uint32_t friendnumber, const uint8_t *data, siz
return;
}

RTPSession *session = NULL;
session = rtp_session_get(call, data[0]);
RTPSession *session = rtp_session_get(call, data[0]);

if (!session) {
LOGGER_API_WARNING(tox, "No session!");
Expand Down

0 comments on commit e533f4c

Please sign in to comment.