aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
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 51fb7a0ba..62846463c 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");