aboutsummaryrefslogtreecommitdiffstats
path: root/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'logger.c')
-rwxr-xr-xlogger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logger.c b/logger.c
index bcd29e851..d344611b1 100755
--- 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;