[svn-commits] branch crichter/0.3.0 - r7982
/team/crichter/0.3.0/channels/chan_misdn_config.c
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Wed Jan 11 07:53:43 CST 2006
Author: crichter
Date: Wed Jan 11 07:53:41 2006
New Revision: 7982
URL: http://svn.digium.com/view/asterisk?rev=7982&view=rev
Log:
fixed bug 179 from bugs.beronet.com (can't set empty options in misdn.conf)
Modified:
team/crichter/0.3.0/channels/chan_misdn_config.c
Modified: team/crichter/0.3.0/channels/chan_misdn_config.c
URL: http://svn.digium.com/view/asterisk/team/crichter/0.3.0/channels/chan_misdn_config.c?rev=7982&r1=7981&r2=7982&view=diff
==============================================================================
--- team/crichter/0.3.0/channels/chan_misdn_config.c (original)
+++ team/crichter/0.3.0/channels/chan_misdn_config.c Wed Jan 11 07:53:41 2006
@@ -522,8 +522,10 @@
dest->str = (char *)malloc((len + 1) * sizeof(char));
strncpy(dest->str, value, len);
dest->str[len] = 0;
- } else
- re = -1;
+ } else {
+ dest->str = (char *)malloc( sizeof(char));
+ dest->str[0] = 0;
+ }
break;
case MISDN_CTYPE_INT:
if (sscanf(value, "%d", &tmp)) {
More information about the svn-commits
mailing list