diff options
author | George Joseph <george.joseph@fairview5.com> | 2016-02-05 09:29:00 -0700 |
---|---|---|
committer | George Joseph <george.joseph@fairview5.com> | 2016-02-05 11:58:26 -0600 |
commit | ec8fd6714d3f82f3ef3f3f53c0c93285dd7470fe (patch) | |
tree | 420ba5aed46bdb0d9f9cad4ee8887ec6184656d9 /channels/misdn_config.c | |
parent | 1fca22453335fe791073ce0f4c3a4ba62c196b21 (diff) |
chan_misdn: Fix a few issues causing compile errors
Change-Id: I54b48c24d7ca88ed80496fdfd142d08772a7ab98
Diffstat (limited to 'channels/misdn_config.c')
-rw-r--r-- | channels/misdn_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/misdn_config.c b/channels/misdn_config.c index 32f92c323..a3ea315a1 100644 --- a/channels/misdn_config.c +++ b/channels/misdn_config.c @@ -698,7 +698,7 @@ void misdn_cfg_get_desc (enum misdn_cfg_elements elem, void *buf, int bufsize, v else if ((elem > MISDN_GEN_FIRST) && (elem < MISDN_GEN_LAST)) spec = (struct misdn_cfg_spec *)gen_spec; - if (!spec || !spec[place].desc) + if (!spec) memset(buf, 0, 1); else { ast_copy_string(buf, spec[place].desc, bufsize); |