]> granicus.if.org Git - curl/commitdiff
examples/xmlstream.c: don't switch off CURL_GLOBAL_SSL
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Dec 2017 06:52:24 +0000 (07:52 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 1 Dec 2017 06:52:24 +0000 (07:52 +0100)
Reported-by: Dima Tisnek
docs/examples/xmlstream.c

index 8066828f2bceaa1e5de3bb0f0845900190df0e96..9ee4a2e88328fa14712a68a4838f6f21075231bc 100644 (file)
@@ -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");