]> granicus.if.org Git - curl/commitdiff
tool: fix CURLOPT_UNIX_SOCKET_PATH in --libcurl output
authorPeter Wu <peter@lekensteyn.nl>
Thu, 4 Dec 2014 19:01:41 +0000 (11:01 -0800)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Dec 2014 14:52:09 +0000 (06:52 -0800)
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>
src/tool_operate.c

index 43d6ec351ae77654c23efb2c7a7e95dfd9d65183..3fa0db1990482ba5db914b2a003a2ffc41b634d7 100644 (file)
@@ -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) ?