summaryrefslogtreecommitdiff
path: root/src/core/special-vars.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/special-vars.c')
-rw-r--r--src/core/special-vars.c4
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;