diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-07-24 11:45:06 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-07-24 11:45:06 +0000 |
commit | d0ef036696bb844405865e886d52177413768354 (patch) | |
tree | 5b40d660708e6a08dddea37373e4164b94baa84a /channels/chan_oss.c | |
parent | 6810884f600d4d2c79c23ae72031a89be47203c1 (diff) |
fix uninitialized variable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@38148 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_oss.c')
-rw-r--r-- | channels/chan_oss.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/chan_oss.c b/channels/chan_oss.c index 548e8d6dd..48af9768e 100644 --- a/channels/chan_oss.c +++ b/channels/chan_oss.c @@ -945,7 +945,7 @@ static int oss_fixup(struct ast_channel *oldchan, struct ast_channel *newchan) static int oss_indicate(struct ast_channel *c, int cond, const void *data, size_t datalen) { struct chan_oss_pvt *o = c->tech_pvt; - int res; + int res = -1; switch(cond) { case AST_CONTROL_BUSY: @@ -970,6 +970,7 @@ static int oss_indicate(struct ast_channel *c, int cond, const void *data, size_ ast_verbose( " << Console Has Been Retrieved from Hold >> \n"); ast_moh_stop(c); break; + default: ast_log(LOG_WARNING, "Don't know how to display condition %d on %s\n", |