automerge commit

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@46990 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Automerge script
2006-11-02 18:05:19 +00:00
parent 74c70148ac
commit 3bb733a7c7
2 changed files with 5 additions and 4 deletions

View File

@@ -875,10 +875,8 @@ void ast_verbose(const char *fmt, ...)
if (complete) {
if (msgcnt < MAX_MSG_QUEUE) {
/* Allocate new structure */
if ((m = malloc(sizeof(*m)))) {
m->msg = NULL;
if ((m = calloc(1, sizeof(*m))))
msgcnt++;
}
} else {
/* Recycle the oldest entry */
m = list;
@@ -887,7 +885,6 @@ void ast_verbose(const char *fmt, ...)
free(m->msg);
}
if (m) {
m->msg = NULL;
m->msg = strdup(stuff);
if (m->msg) {
if (last)