Minor logger fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-12-02 15:08:55 +00:00
parent b497faff84
commit e6e73e7c94

View File

@@ -108,7 +108,7 @@ static struct logfile *make_logfile(char *fn, char *components, int lineno)
return NULL; return NULL;
f = malloc(sizeof(struct logfile)); f = malloc(sizeof(struct logfile));
if (f) { if (f) {
memset(f, 0, sizeof(f)); memset(f, 0, sizeof(struct logfile));
strncpy(f->fn, fn, sizeof(f->fn) - 1); strncpy(f->fn, fn, sizeof(f->fn) - 1);
if (!strcasecmp(fn, "ignore")) { if (!strcasecmp(fn, "ignore")) {
f->f = NULL; f->f = NULL;