diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-29 17:41:43 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-29 17:41:43 +0000 |
commit | 19d24feb33da21deb1561a65355a1f99c62356a8 (patch) | |
tree | 6c74044ca6ff27ecbe6950abf49bf81a597790a8 /channels/misdn_config.c | |
parent | ccc8439954419728d5bc1fd5da3cfc0f3e1b7b4d (diff) |
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/branches/1.4@100930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/misdn_config.c')
-rw-r--r-- | channels/misdn_config.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/channels/misdn_config.c b/channels/misdn_config.c index d13ab0a09..cb1662251 100644 --- a/channels/misdn_config.c +++ b/channels/misdn_config.c @@ -534,7 +534,8 @@ void misdn_cfg_get (int port, enum misdn_cfg_elements elem, void *buf, int bufsi } 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) |