aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-12-01 07:52:24 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-12-01 07:52:24 +0100
commit744ee58386c41f487a8f62d5ce3f77a12b30ec9c (patch)
treee7b00c83f1bbf405388e9df768d91f330e878215
parent270494e1a09dd2dc6504150220c492406be62e79 (diff)
examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
Reported-by: Dima Tisnek
-rw-r--r--docs/examples/xmlstream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/examples/xmlstream.c b/docs/examples/xmlstream.c
index 8066828f2..9ee4a2e88 100644
--- a/docs/examples/xmlstream.c
+++ b/docs/examples/xmlstream.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -127,7 +127,7 @@ int main(void)
XML_SetCharacterDataHandler(parser, characterDataHandler);
/* Initialize a libcurl handle. */
- curl_global_init(CURL_GLOBAL_ALL ^ CURL_GLOBAL_SSL);
+ curl_global_init(CURL_GLOBAL_DEFAULT);
curl_handle = curl_easy_init();
curl_easy_setopt(curl_handle, CURLOPT_URL,
"http://www.w3schools.com/xml/simple.xml");