summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <Alan.Coopersmith@sun.com>2004-12-22 08:28:16 +0000
committerAlan Coopersmith <Alan.Coopersmith@sun.com>2004-12-22 08:28:16 +0000
commitab0973b4595cfe27c81202bfb4a148780b05bb02 (patch)
tree1634ecd55551b3ab89d2cc18db4118430a74f534
parentece6cefc8e0238071f89de520d4a969fede53bd6 (diff)
downloadxorg-lib-libXmu-sco_port_update.tar.gz
#1587 <https://bugs.freedesktop.org/attachment.cgi?id=1587> Call to uname should not check for return == 0, but for >= 0 instead
-rw-r--r--src/CvtStdSel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CvtStdSel.c b/src/CvtStdSel.c
index f9018fe..8726dcd 100644
--- a/src/CvtStdSel.c
+++ b/src/CvtStdSel.c
@@ -114,7 +114,7 @@ get_os_name(void)
#ifdef USE_UNAME
struct utsname utss;
- if (uname (&utss) == 0) {
+ if (uname (&utss) >= 0) {
char *os_name;
int len = strlen(utss.sysname) + 1;
#ifndef hpux /* because of hostname length crock */