projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a731e5
)
stomp on seg on logger reload
author
Jeremy McNamara
<jj@nufone.net>
Mon, 12 Jan 2004 08:11:41 +0000
(08:11 +0000)
committer
Jeremy McNamara
<jj@nufone.net>
Mon, 12 Jan 2004 08:11:41 +0000
(08:11 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1980
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
logger.c
patch
|
blob
|
history
diff --git
a/logger.c
b/logger.c
index
ffdb96a
..
e6a7d52
100755
(executable)
--- 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) {
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)) {
if (!strcasecmp(channel, "console")) {
chan->console = 1;
} else if (!strncasecmp(channel, "syslog", 6)) {