aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-02-11 12:17:31 +0100
committerDaniel Stenberg <daniel@haxx.se>2019-02-11 12:17:31 +0100
commit3f16990ec84cc4b25e6b765d5cc3217f356681b7 (patch)
tree49e8b3e1aa26f52e993f96f939898688e2906b49 /src
parent982c09b95b618b1609a9f4aa00abe89f6806c023 (diff)
curl: follow-up to b49652ac66cc0
On FreeBSD, return non-zero on error otherwise zero. Reported-by: Marcel Raad
Diffstat (limited to 'src')
-rw-r--r--src/tool_xattr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_xattr.c b/src/tool_xattr.c
index be5f024a6..7cc42e0f1 100644
--- a/src/tool_xattr.c
+++ b/src/tool_xattr.c
@@ -116,7 +116,7 @@ int fwrite_xattr(CURL *curl, int fd)
mappings[i].attr, value, strlen(value));
/* FreeBSD's extattr_set_fd returns the length of the extended
attribute */
- err = (int)rc;
+ err = (rc < 0 : -1 : 0);
}
#endif
if(freeptr)