]> granicus.if.org Git - curl/commitdiff
curl: follow-up to 3f16990ec84
authorDaniel Gustafsson <daniel@yesql.se>
Mon, 11 Feb 2019 13:22:36 +0000 (14:22 +0100)
committerDaniel Gustafsson <daniel@yesql.se>
Mon, 11 Feb 2019 13:22:36 +0000 (14:22 +0100)
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>
src/tool_xattr.c

index 7cc42e0f11b7dbe7c7b8f2653d5e74813b0dbde6..592d4a120acddf9db3e5e5b2ab6e395620c2a10a 100644 (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 = (rc < 0 : -1 : 0);
+          err = (rc < 0 ? -1 : 0);
         }
 #endif
         if(freeptr)