Skip to content
Snippets Groups Projects
Commit 5273ddbb authored by Jeremy McNamara's avatar Jeremy McNamara
Browse files

stomp on seg on logger reload

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1980 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 8a731e50
Branches
Tags
No related merge requests found
...@@ -125,7 +125,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l ...@@ -125,7 +125,7 @@ static struct logchannel *make_logchannel(char *channel, char *components, int l
chan = malloc(sizeof(struct logchannel)); chan = malloc(sizeof(struct logchannel));
if (chan) { if (chan) {
memset(chan, 0, sizeof(chan)); memset(chan, 0, sizeof(struct logchannel));
if (!strcasecmp(channel, "console")) { if (!strcasecmp(channel, "console")) {
chan->console = 1; chan->console = 1;
} else if (!strncasecmp(channel, "syslog", 6)) { } else if (!strncasecmp(channel, "syslog", 6)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment