From b365a78a5a8517b5292e6dcfcedf0fae25e55b2c Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Fri, 13 Jul 2001 19:17:43 +0000 Subject: 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 --- src/core/expandos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3