From: Daniel Gustafsson Date: Mon, 11 Feb 2019 13:22:36 +0000 (+0100) Subject: curl: follow-up to 3f16990ec84 X-Git-Tag: curl-7_64_1~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b569f62488b32d8ba5d4b91deaf8c5187199404;p=thirdparty%2Fcurl.git curl: follow-up to 3f16990ec84 Commit 3f16990ec84cc4b followed-up a bug in b49652ac66cc0 but was inadvertently introducing a new bug in the ternary expression. Close #3555 Reviewed-by: Daniel Stenberg --- diff --git a/src/tool_xattr.c b/src/tool_xattr.c index 7cc42e0f11..592d4a120a 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 = (rc < 0 : -1 : 0); + err = (rc < 0 ? -1 : 0); } #endif if(freeptr)