aboutsummaryrefslogtreecommitdiffstats
path: root/channels/misdn_config.c
diff options
context:
space:
mode:
authorqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-29 17:42:48 +0000
committerqwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-29 17:42:48 +0000
commit494e664035dcc6b992d2bc9d08d2e8bbd32e4305 (patch)
tree38e191a29eec61923d2dbc5fd451f47536f1796f /channels/misdn_config.c
parent632edc61f9a3ac632b53f5fabe93a866fe3caac8 (diff)
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) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@100931 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn_config.c')
-rw-r--r--channels/misdn_config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/misdn_config.c b/channels/misdn_config.c
index bbe23fb6c..ec74d9213 100644
--- a/channels/misdn_config.c
+++ b/channels/misdn_config.c
@@ -537,7 +537,8 @@ void misdn_cfg_get(int port, enum misdn_cfg_elements elem, void *buf, int bufsiz
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)