1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

curl: follow-up to 3f16990ec8

Commit 3f16990ec8 followed-up a bug in b49652ac66 but was
inadvertently introducing a new bug in the ternary expression.

Close #3555
Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
Daniel Gustafsson 2019-02-11 14:22:36 +01:00
parent e5d574c54f
commit 3b569f6248

View File

@ -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 = (rc < 0 : -1 : 0); err = (rc < 0 ? -1 : 0);
} }
#endif #endif
if(freeptr) if(freeptr)