mirror of
https://github.com/moparisthebest/curl
synced 2024-11-16 06:25:03 -05: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
@ -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…
Reference in New Issue
Block a user