[asterisk-commits] trunk r30216 - /trunk/apps/app_queue.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 25 07:32:15 MST 2006


Author: bweschke
Date: Thu May 25 09:32:15 2006
New Revision: 30216

URL: http://svn.digium.com/view/asterisk?rev=30216&view=rev
Log:
 Properly initialize destination variables before we send them into pbx_substitute_variables_helper(..). Ya! Testing! Take 2.


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?rev=30216&r1=30215&r2=30216&view=diff
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Thu May 25 09:32:15 2006
@@ -2365,6 +2365,7 @@
 						}
 					}
 
+					memset(tmpid, 0, sizeof(tmpid));
 					pbx_substitute_variables_helper(qe->chan, tmpid2, tmpid, sizeof(tmpid) - 1);
 				}
 
@@ -2378,6 +2379,8 @@
 							*p = '$';
 						}
 					}
+
+					memset(meid, 0, sizeof(meid));
 					pbx_substitute_variables_helper(qe->chan, meid2, meid, sizeof(meid) - 1);
 				} 
 	



More information about the asterisk-commits mailing list