summaryrefslogtreecommitdiff
path: root/sysklogd/syslogd.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd/syslogd.c')
-rw-r--r--sysklogd/syslogd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c
index f8e8488..345bf0e 100644
--- a/sysklogd/syslogd.c
+++ b/sysklogd/syslogd.c
@@ -218,7 +218,7 @@ static void ipcsyslog_init(void)
}
G.shbuf = shmat(G.shmid, NULL, 0);
- if (!G.shbuf) {
+ if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */
bb_perror_msg_and_die("shmat");
}