mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3397,7 +3397,6 @@ static int minivm_counter_func_write(struct ast_channel *chan, const char *cmd,
|
||||
{
|
||||
char *username, *domain, *countername, *operand;
|
||||
char userpath[BUFSIZ];
|
||||
struct minivm_account *vmu;
|
||||
int change = 0;
|
||||
int operation = 0;
|
||||
|
||||
@@ -3442,7 +3441,7 @@ static int minivm_counter_func_write(struct ast_channel *chan, const char *cmd,
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user