From f4298fcc6d27e3c7390bd561466e8cd81f4ed8d7 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 26 Apr 2016 23:51:50 +0200 Subject: opts: Fix some syntax errors in example code fragments Fixes #779 --- docs/libcurl/opts/CURLOPT_RESOLVE.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/libcurl/opts/CURLOPT_RESOLVE.3') diff --git a/docs/libcurl/opts/CURLOPT_RESOLVE.3 b/docs/libcurl/opts/CURLOPT_RESOLVE.3 index faa5c2604..028341ed2 100644 --- a/docs/libcurl/opts/CURLOPT_RESOLVE.3 +++ b/docs/libcurl/opts/CURLOPT_RESOLVE.3 @@ -67,7 +67,8 @@ curl = curl_easy_init(); if(curl) { curl_easy_setopt(curl, CURLOPT_RESOLVE, host); curl_easy_setopt(curl, CURLOPT_URL, "http://example.com"); - res = curl_easy_perform(curl); + + curl_easy_perform(curl); /* always cleanup */ curl_easy_cleanup(curl); -- cgit v1.2.3