Merged revisions 100930 via svnmerge from
[asterisk/asterisk.git] / channels / misdn_config.c
index bbe23fb..ec74d92 100644 (file)
@@ -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)