summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/procattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/procattr.c b/src/procattr.c
index e88e224..a55465a 100644
--- a/src/procattr.c
+++ b/src/procattr.c
@@ -34,7 +34,7 @@ static int openattr(pid_t pid, const char *attr, int flags)
tid = gettid();
rc = asprintf(&path, "/proc/self/task/%d/attr/%s", tid, attr);
} else {
- errno = -EINVAL;
+ errno = EINVAL;
return -1;
}
if (rc < 0)