diff options
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 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) |