From aec85e1dbdcad457478a02f20baad37753ee3390 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 22 Jul 2000 19:14:57 +0000 Subject: uname() return value checking fixes. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@508 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/special-vars.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core') diff --git a/src/core/special-vars.c b/src/core/special-vars.c index fcc8c69d..20f82e10 100644 --- a/src/core/special-vars.c +++ b/src/core/special-vars.c @@ -610,7 +610,7 @@ static char *expando_sysname(void *server, void *item, int *free_ret) { struct utsname un; - if (uname(&un) != 0) + if (uname(&un) == -1) return NULL; *free_ret = TRUE; @@ -623,7 +623,7 @@ static char *expando_sysrelease(void *server, void *item, int *free_ret) { struct utsname un; - if (uname(&un) != 0) + if (uname(&un) == -1) return NULL; *free_ret = TRUE; -- cgit v1.2.3