[asterisk-commits] rizzo: trunk r38148 - /trunk/channels/chan_oss.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Mon Jul 24 04:45:06 MST 2006
Author: rizzo
Date: Mon Jul 24 06:45:06 2006
New Revision: 38148
URL: http://svn.digium.com/view/asterisk?rev=38148&view=rev
Log:
fix uninitialized variable
Modified:
trunk/channels/chan_oss.c
Modified: trunk/channels/chan_oss.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_oss.c?rev=38148&r1=38147&r2=38148&view=diff
==============================================================================
--- trunk/channels/chan_oss.c (original)
+++ trunk/channels/chan_oss.c Mon Jul 24 06:45:06 2006
@@ -945,7 +945,7 @@
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 @@
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",
More information about the asterisk-commits
mailing list