aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-04 11:01:41 -0800
committerDaniel Stenberg <daniel@haxx.se>2014-12-04 06:52:09 -0800
commit2e557de09431854e4ad137cd741a582caa917517 (patch)
treea93551d25230483d24b89fdbb98bc1c754a0fd67
parent4fd0add1cd0e78ec4a0ddb323c3ba7f1f492c4a5 (diff)
tool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output
Mark CURLOPT_UNIX_SOCKET_PATH as string to ensure that it ends up as option in the file generated by --libcurl. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
-rw-r--r--src/tool_operate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 43d6ec351..3fa0db199 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1333,7 +1333,8 @@ static CURLcode operate_do(struct GlobalConfig *global,
/* new in 7.40.0 */
if(config->unix_socket_path)
- my_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, config->unix_socket_path);
+ my_setopt_str(curl, CURLOPT_UNIX_SOCKET_PATH,
+ config->unix_socket_path);
/* initialize retry vars for loop below */
retry_sleep_default = (config->retry_delay) ?