diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-22 19:14:57 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-22 19:14:57 +0000 |
commit | aec85e1dbdcad457478a02f20baad37753ee3390 (patch) | |
tree | b02c6adc9e210cb72bfa6db0f84e6dd983da38c8 /src/core | |
parent | bf77ffaa2148fa5add1d91894b9d7f20d1d91bb0 (diff) | |
download | irssi-aec85e1dbdcad457478a02f20baad37753ee3390.zip |
uname() return value checking fixes.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@508 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/special-vars.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |