diff options
author | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2004-12-22 08:28:16 +0000 |
---|---|---|
committer | Alan Coopersmith <Alan.Coopersmith@sun.com> | 2004-12-22 08:28:16 +0000 |
commit | ab0973b4595cfe27c81202bfb4a148780b05bb02 (patch) | |
tree | 1634ecd55551b3ab89d2cc18db4118430a74f534 | |
parent | ece6cefc8e0238071f89de520d4a969fede53bd6 (diff) | |
download | xorg-lib-libXmu-sco_port_update.tar.gz |
Bug #2123 <https://bugs.freedesktop.org/show_bug.cgi?id=2123> Attachmentsco_port_update-baseXORG-6_8_99_7XORG-6_8_99_6XORG-6_8_99_5XORG-6_8_99_4XORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1sco_port_update
#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.c | 2 |
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 */ |