Skip to content
Snippets Groups Projects
Commit 5d350e0f authored by Russell Bryant's avatar Russell Bryant
Browse files

The variable used for the return value must be declared as static. I broke

this when applying the patch, sorry!
(issue #9637, jeffg)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69067 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 33c66c4e
No related branches found
No related tags found
No related merge requests found
......@@ -590,14 +590,14 @@ static u_char *ast_var_channel_types_table(struct variable *vp, oid *name, size_
static u_char *ast_var_channel_bridge(struct variable *vp, oid *name, size_t *length,
int exact, size_t *var_len, WriteMethod **write_method)
{
unsigned long long_ret = 0;
static unsigned long long_ret = 0;
struct ast_channel *chan = NULL;
if (header_generic(vp, name, length, exact, var_len, write_method))
return NULL;
while ((chan = ast_channel_walk_locked(chan))) {
if (ast_bridged_channel(chan) != NULL)
if (ast_bridged_channel(chan))
long_ret++;
ast_channel_unlock(chan);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment