[asterisk-commits] qwell: branch 1.4 r100930 - /branches/1.4/channels/misdn_config.c

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


Author: qwell
Date: Tue Jan 29 11:41:43 2008
New Revision: 100930

URL: http://svn.digium.com/view/asterisk?view=rev&rev=100930
Log:
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:
    branches/1.4/channels/misdn_config.c

Modified: branches/1.4/channels/misdn_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/misdn_config.c?view=diff&rev=100930&r1=100929&r2=100930
==============================================================================
--- branches/1.4/channels/misdn_config.c (original)
+++ branches/1.4/channels/misdn_config.c Tue Jan 29 11:41:43 2008
@@ -534,7 +534,8 @@
 					} else if (port_cfg[0][place].str) {
 						if (!memccpy(buf, port_cfg[0][place].str, 0, bufsize))
 							memset(buf, 0, 1);
-					}
+					} else
+						memset(buf, 0, bufsize);
 					break;
 				default:
 					if (port_cfg[port][place].any)




More information about the asterisk-commits mailing list