diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-12 19:17:59 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-07-12 19:17:59 +0000 |
commit | 31e4dbdd2f025607210fcf81e867f36110b70048 (patch) | |
tree | 18614b14a30dc92d50db4996788b78e065b6e784 /main | |
parent | f376f7e3597d18efa6ccb3fd8c25ce7d51ef749f (diff) |
Whoops... didn't want this to be returned to 0 each iteration.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@74922 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main')
-rw-r--r-- | main/channel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/channel.c b/main/channel.c index dd2ed6781..2853e0f55 100644 --- a/main/channel.c +++ b/main/channel.c @@ -2072,6 +2072,7 @@ int ast_settimeout(struct ast_channel *c, int samples, int (*func)(void *data), int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd) { + int begin_digit = 0; /* Stop if we're a zombie or need a soft hangup */ if (ast_test_flag(c, AST_FLAG_ZOMBIE) || ast_check_hangup(c)) @@ -2079,7 +2080,7 @@ int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd) /* Wait for a digit, no more than ms milliseconds total. */ while (ms) { struct ast_channel *rchan; - int outfd, begin_digit = 0; + int outfd; errno = 0; rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms); |