From 3cb6db3d60a053fb16ffe0f82d8d9f615f3622b2 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Sat, 5 Dec 2015 00:19:11 -0500 Subject: [PATCH] Remove pointless null check --- src/audio_call.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/audio_call.c b/src/audio_call.c index d88ae6b..86abb05 100644 --- a/src/audio_call.c +++ b/src/audio_call.c @@ -822,11 +822,6 @@ on_error: void stop_current_call(ToxWindow* self) { - Call *this_call = &CallControl.calls[self->num]; - - if ( !this_call ) - return; - if ( CallControl.pending_call ) { toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL); callback_call_canceled(self->num);