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 ffdb96a58..e6a7d5293 100755
--- a/logger.c
+++ b/logger.c
@@ -125,7 +125,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l
chan = malloc(sizeof(struct logchannel));
if (chan) {
- memset(chan, 0, sizeof(chan));
+ memset(chan, 0, sizeof(struct logchannel));
if (!strcasecmp(channel, "console")) {
chan->console = 1;
} else if (!strncasecmp(channel, "syslog", 6)) {