From 350051d81670181211fd17e6048c758a0f348d56 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Thu, 2 Jan 2014 14:45:41 +0100 Subject: [PATCH] Typo in call-mute --- daemon/commands/call-mute.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon/commands/call-mute.cc b/daemon/commands/call-mute.cc index 15726eaa1..33e44beb9 100644 --- a/daemon/commands/call-mute.cc +++ b/daemon/commands/call-mute.cc @@ -22,14 +22,13 @@ void CallMute::exec(Daemon* app, const char* args) LinphoneCore *lc = app->getCore(); int muted = TRUE; // no arg means MUTE LinphoneCall *call = linphone_core_get_current_call(lc); - int cid; if( call == NULL ){ app->sendResponse(Response("No call in progress. Can't mute.")); return; } - if (sscanf(args, "%i", &cid) == 1) { + if (sscanf(args, "%i", &muted) == 1) { linphone_core_mute_mic(lc, (muted != 0)); } else { linphone_core_mute_mic(lc, (muted != 0));