[asterisk-commits] trunk r26281 - /trunk/pbx.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed May 10 00:13:24 MST 2006


Author: rizzo
Date: Wed May 10 02:13:23 2006
New Revision: 26281

URL: http://svn.digium.com/view/asterisk?rev=26281&view=rev
Log:
prevent a warning for uninitialized variable.


Modified:
    trunk/pbx.c

Modified: trunk/pbx.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx.c?rev=26281&r1=26280&r2=26281&view=diff
==============================================================================
--- trunk/pbx.c (original)
+++ trunk/pbx.c Wed May 10 02:13:23 2006
@@ -4346,6 +4346,7 @@
 	tmp->registrar = registrar;
 
 	ast_mutex_lock(&con->lock);
+	res = 0; /* some compilers will think it is uninitialized otherwise */
 	for (e = con->root; e; el = e, e = e->next) {   /* scan the extension list */
 		res = ext_cmp(e->exten, extension);
 		if (res == 0) { /* extension match, now look at cidmatch */



More information about the asterisk-commits mailing list