syslogd: small shrink
[oweals/busybox.git] / sysklogd / logread.c
index 51fb7a0ba1264f22596da5ffc7cf8d632e3b5308..62846463c4c50e72496a5c11df15e06efb4a26ad 100644 (file)
@@ -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");