diff options
author | Daniel Gustafsson <daniel@yesql.se> | 2019-02-11 14:22:36 +0100 |
---|---|---|
committer | Daniel Gustafsson <daniel@yesql.se> | 2019-02-11 14:22:36 +0100 |
commit | 3b569f62488b32d8ba5d4b91deaf8c5187199404 (patch) | |
tree | 888a49f214d7317db7a03363126407283c49c85d /src | |
parent | e5d574c54fa795a090054e4f825a07d0a516bf0d (diff) | |
download | curl-3b569f62488b32d8ba5d4b91deaf8c5187199404.tar.gz |
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 <daniel@haxx.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_xattr.c b/src/tool_xattr.c index 7cc42e0f1..592d4a120 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) |