commit | 050fe9e9daa92ff288d54f7d6f7d8aca2237978a | [log] [tgz] |
---|---|---|
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | Mon May 08 19:30:58 2017 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri May 12 08:37:16 2017 -0400 |
tree | 7999c644ccf445590cb0cc69207eeaa63b906825 | |
parent | 1d3bfcd500075278531c3bd57f3da08bff9811d2 [diff] |
env: correct sign for error code Error codes should be negative. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
diff --git a/common/env_attr.c b/common/env_attr.c index 5bfe5e3..3862190 100644 --- a/common/env_attr.c +++ b/common/env_attr.c
@@ -153,7 +153,7 @@ } } else { printf("Error compiling regex: %s\n", slre.err_str); - retval = EINVAL; + retval = -EINVAL; } done: return retval;