[asterisk-commits] qwell: trunk r100931 - in /trunk: ./ channels/misdn_config.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 29 11:42:49 CST 2008


Author: qwell
Date: Tue Jan 29 11:42:48 2008
New Revision: 100931

URL: http://svn.digium.com/view/asterisk?view=rev&rev=100931
Log:
Merged revisions 100930 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r100930 | qwell | 2008-01-29 11:41:43 -0600 (Tue, 29 Jan 2008) | 6 lines

Initialize an array to 0s if config option not specified.

(closes issue #11860)
Patches:
      misdn_get_config.v1.diff uploaded by IgorG (license 20)

........

Modified:
    trunk/   (props changed)
    trunk/channels/misdn_config.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/channels/misdn_config.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/misdn_config.c?view=diff&rev=100931&r1=100930&r2=100931
==============================================================================
--- trunk/channels/misdn_config.c (original)
+++ trunk/channels/misdn_config.c Tue Jan 29 11:42:48 2008
@@ -537,7 +537,8 @@
 						ast_copy_string(buf, port_cfg[port][place].str, bufsize);
 					} else if (port_cfg[0][place].str) {
 						ast_copy_string(buf, port_cfg[0][place].str, bufsize);
-					}
+					} else
+						memset(buf, 0, bufsize);
 					break;
 				default:
 					if (port_cfg[port][place].any)




More information about the asterisk-commits mailing list