From: Denis Vlasenko Date: Mon, 7 Jan 2008 15:58:02 +0000 (-0000) Subject: syslogd: fix shmat error check X-Git-Tag: 1_10_0~285 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4e9ca75281a25dcdbb3e2d2fa79108b02afa43db;p=oweals%2Fbusybox.git syslogd: fix shmat error check --- diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index f8e8488fb..345bf0e87 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"); }