Skip to content
Snippets Groups Projects
Commit e6e73e7c authored by Mark Spencer's avatar Mark Spencer
Browse files

Minor logger fix

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1811 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent b497faff
No related branches found
No related tags found
No related merge requests found
...@@ -108,7 +108,7 @@ static struct logfile *make_logfile(char *fn, char *components, int lineno) ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment