Minor logger fix
authorMark Spencer <markster@digium.com>
Tue, 2 Dec 2003 15:08:55 +0000 (15:08 +0000)
committerMark Spencer <markster@digium.com>
Tue, 2 Dec 2003 15:08:55 +0000 (15:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1811 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index bcd29e8..d344611 100755 (executable)
--- a/logger.c
+++ b/logger.c
@@ -108,7 +108,7 @@ static struct logfile *make_logfile(char *fn, char *components, int lineno)
                return NULL;
        f = malloc(sizeof(struct logfile));
        if (f) {
-               memset(f, 0, sizeof(f));
+               memset(f, 0, sizeof(struct logfile));
                strncpy(f->fn, fn, sizeof(f->fn) - 1);
                if (!strcasecmp(fn, "ignore")) {
                        f->f = NULL;