diff options
Diffstat (limited to 'src')
-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); |