mirror of
https://github.com/curl/curl.git
synced 2026-07-24 19:47:16 +03:00
curl: follow-up to b49652ac66
On FreeBSD, return non-zero on error otherwise zero. Reported-by: Marcel Raad
This commit is contained in:
parent
982c09b95b
commit
3f16990ec8
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ int fwrite_xattr(CURL *curl, int fd)
|
||||||
mappings[i].attr, value, strlen(value));
|
mappings[i].attr, value, strlen(value));
|
||||||
/* FreeBSD's extattr_set_fd returns the length of the extended
|
/* FreeBSD's extattr_set_fd returns the length of the extended
|
||||||
attribute */
|
attribute */
|
||||||
err = (int)rc;
|
err = (rc < 0 : -1 : 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if(freeptr)
|
if(freeptr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue