[asterisk-commits] russell: branch 10 r359491 - in /branches/10: ./ apps/app_chanisavail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 14 18:28:36 CDT 2012


Author: russell
Date: Wed Mar 14 18:28:32 2012
New Revision: 359491

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359491
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.
........

Merged revisions 359486 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/10/   (props changed)
    branches/10/apps/app_chanisavail.c

Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/10/apps/app_chanisavail.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/apps/app_chanisavail.c?view=diff&rev=359491&r1=359490&r2=359491
==============================================================================
--- branches/10/apps/app_chanisavail.c (original)
+++ branches/10/apps/app_chanisavail.c Wed Mar 14 18:28:32 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