1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

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
This commit is contained in:
Timo Sirainen 2001-07-13 19:17:43 +00:00 committed by cras
parent a5a277c94d
commit b365a78a5a

View File

@ -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);