1
0
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:
Daniel Stenberg 2019-02-11 12:17:31 +01:00
parent 982c09b95b
commit 3f16990ec8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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)