Skip to content

Commit

Permalink
Fix reporting uninitialized error value
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Aug 17, 2014
1 parent de7d322 commit 8f8af85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tox_av.h
Expand Up @@ -253,7 +253,7 @@ static void video_thread(void *args)
for(i = 0; i < MAX_CALLS; i++) {
if(call[i]) {
int r, len;
if((len = toxav_prepare_video_frame(av, i, lbuffer, sizeof(lbuffer), &input)) < 0) {
if((r = len = toxav_prepare_video_frame(av, i, lbuffer, sizeof(lbuffer), &input)) < 0) {
debug("toxav_prepare_video_frame error %i\n", r);
continue;
}
Expand Down

0 comments on commit 8f8af85

Please sign in to comment.