summaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
authorDenis Vlasenko2007-11-23 03:41:20 +0000
committerDenis Vlasenko2007-11-23 03:41:20 +0000
commite85dbae3896eaf26a591a34bc5e827f55ea8e041 (patch)
tree84b35a03097e837e6f0e61ff1881f51aa42c5c9c /sysklogd
parentff2b6d21853ca6417a43c06f37a32201f881245d (diff)
downloadbusybox-e85dbae3896eaf26a591a34bc5e827f55ea8e041.zip
busybox-e85dbae3896eaf26a591a34bc5e827f55ea8e041.tar.gz
logread: add forgotten INIT_G();
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/logread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysklogd/logread.c b/sysklogd/logread.c
index 51fb7a0..6284646 100644
--- a/sysklogd/logread.c
+++ b/sysklogd/logread.c
@@ -75,6 +75,8 @@ int logread_main(int argc, char **argv)
int log_shmid; /* ipc shared memory id */
smallint follow = getopt32(argv, "f");
+ INIT_G();
+
log_shmid = shmget(KEY_ID, 0, 0);
if (log_shmid == -1)
bb_perror_msg_and_die("can't find syslogd buffer");