From db24fc2523da16bd812abb2a35b6320d24083e3f Mon Sep 17 00:00:00 2001 From: Walter Doekes Date: Wed, 8 Feb 2012 20:49:48 +0000 Subject: Avoid cppcheck warnings; removing unused vars and a bit of cleanup. Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_minivm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/app_minivm.c') diff --git a/apps/app_minivm.c b/apps/app_minivm.c index da9f68954..3ffe06187 100644 --- a/apps/app_minivm.c +++ b/apps/app_minivm.c @@ -3343,7 +3343,6 @@ static int access_counter_file(char *directory, char *countername, int value, in static int minivm_counter_func_read(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t len) { char *username, *domain, *countername; - struct minivm_account *vmu = NULL; char userpath[BUFSIZ]; int res; @@ -3381,7 +3380,7 @@ static int minivm_counter_func_read(struct ast_channel *chan, const char *cmd, c } /* If we can't find account or if the account is temporary, return. */ - if (!ast_strlen_zero(username) && !(vmu = find_account(domain, username, FALSE))) { + if (!ast_strlen_zero(username) && !find_account(domain, username, FALSE)) { ast_log(LOG_ERROR, "Minivm account does not exist: %s@%s\n", username, domain); return 0; } -- cgit v1.2.3