[asterisk-commits] russell: branch 1.8 r359486 - /branches/1.8/apps/app_chanisavail.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 14 18:27:03 CDT 2012
Author: russell
Date: Wed Mar 14 18:26:59 2012
New Revision: 359486
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359486
Log:
app_chanisavail: Fix use of uninitialized variable.
Ensure that status is set before it is used by resetting it during each loop
iteration. This could have resulted in incorrect results from this app.
Modified:
branches/1.8/apps/app_chanisavail.c
Modified: branches/1.8/apps/app_chanisavail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_chanisavail.c?view=diff&rev=359486&r1=359485&r2=359486
==============================================================================
--- branches/1.8/apps/app_chanisavail.c (original)
+++ branches/1.8/apps/app_chanisavail.c Wed Mar 14 18:26:59 2012
@@ -152,7 +152,9 @@
}
*number = '\0';
number++;
-
+
+ status = AST_DEVICE_UNKNOWN;
+
if (string_compare) {
/* ast_parse_device_state checks for "SIP/1234" as a channel name.
ast_device_state will ask the SIP driver for the channel state. */
More information about the asterisk-commits
mailing list