diff options
author | Timo Sirainen <cras@irssi.org> | 2001-07-13 19:17:43 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-07-13 19:17:43 +0000 |
commit | b365a78a5a8517b5292e6dcfcedf0fae25e55b2c (patch) | |
tree | f7690d3fd40dd20af7f91f699df5142c96b5b992 | |
parent | a5a277c94d46c01c38cbe0130e7c7aaf1e79b958 (diff) | |
download | irssi-b365a78a5a8517b5292e6dcfcedf0fae25e55b2c.zip |
uname() returns non-negative if successful, not necessarily 0.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1613 dbcabf3a-b0e7-0310-adc4-f8d773084564
-rw-r--r-- | src/core/expandos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/expandos.c b/src/core/expandos.c index e6572316..af175a12 100644 --- a/src/core/expandos.c +++ b/src/core/expandos.c @@ -462,7 +462,7 @@ void expandos_init(void) sysname = sysrelease = sysarch = NULL; #ifdef HAVE_SYS_UTSNAME_H - if (uname(&un) == 0) { + if (uname(&un) >= 0) { sysname = g_strdup(un.sysname); sysrelease = g_strdup(un.release); sysarch = g_strdup(un.machine); |