mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
Minor logger fix
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
2
logger.c
2
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;
|
||||
|
Reference in New Issue
Block a user