logread: add forgotten INIT_G();

This commit is contained in:
Denis Vlasenko 2007-11-23 03:41:20 +00:00
parent ff2b6d2185
commit e85dbae389

View File

@ -75,6 +75,8 @@ int logread_main(int argc, char **argv)
int log_shmid; /* ipc shared memory id */ int log_shmid; /* ipc shared memory id */
smallint follow = getopt32(argv, "f"); smallint follow = getopt32(argv, "f");
INIT_G();
log_shmid = shmget(KEY_ID, 0, 0); log_shmid = shmget(KEY_ID, 0, 0);
if (log_shmid == -1) if (log_shmid == -1)
bb_perror_msg_and_die("can't find syslogd buffer"); bb_perror_msg_and_die("can't find syslogd buffer");