summaryrefslogtreecommitdiff
path: root/common/env_attr.c
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-05-08 19:30:58 +0200
committerTom Rini <trini@konsulko.com>2017-05-12 08:37:16 -0400
commit9b57e252ffb85b175b0818bf01fb20086d788f5d (patch)
tree7999c644ccf445590cb0cc69207eeaa63b906825 /common/env_attr.c
parent878d8856205d7cc73331ee3ef571a7bc1a619693 (diff)
env: correct sign for error code
Error codes should be negative. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'common/env_attr.c')
-rw-r--r--common/env_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/env_attr.c b/common/env_attr.c
index 5bfe5e3a89..386219087b 100644
--- a/common/env_attr.c
+++ b/common/env_attr.c
@@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv)
}
} else {
printf("Error compiling regex: %s\n", slre.err_str);
- retval = EINVAL;
+ retval = -EINVAL;
}
done:
return retval;