[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/libbase curl_adapter.cpp
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] gnash/libbase curl_adapter.cpp |
Date: |
Thu, 09 Nov 2006 13:05:40 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Bastiaan Jacques <bjacques> 06/11/09 13:05:40
Modified files:
libbase : curl_adapter.cpp
Log message:
Don't forget to store curl_easy_setopt()'s return value, in addition to
checking it.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/libbase/curl_adapter.cpp?cvsroot=gnash&r1=1.18&r2=1.19
Patches:
Index: curl_adapter.cpp
===================================================================
RCS file: /sources/gnash/gnash/libbase/curl_adapter.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- curl_adapter.cpp 9 Nov 2006 12:59:56 -0000 1.18
+++ curl_adapter.cpp 9 Nov 2006 13:05:39 -0000 1.19
@@ -16,7 +16,7 @@
//
-/* $Id: curl_adapter.cpp,v 1.18 2006/11/09 12:59:56 bjacques Exp $ */
+/* $Id: curl_adapter.cpp,v 1.19 2006/11/09 13:05:39 bjacques Exp $ */
#if defined(_WIN32) || defined(WIN32)
#define snprintf _snprintf
@@ -305,18 +305,18 @@
// set write data and function
- curl_easy_setopt(_handle, CURLOPT_WRITEDATA, this);
+ ccode = curl_easy_setopt(_handle, CURLOPT_WRITEDATA, this);
if ( ccode != CURLE_OK ) {
throw gnash::GnashException(curl_easy_strerror(ccode));
}
- curl_easy_setopt(_handle, CURLOPT_WRITEFUNCTION,
+ ccode = curl_easy_setopt(_handle, CURLOPT_WRITEFUNCTION,
CurlStreamFile::recv);
if ( ccode != CURLE_OK ) {
throw gnash::GnashException(curl_easy_strerror(ccode));
}
- curl_easy_setopt(_handle, CURLOPT_FOLLOWLOCATION, 1);
+ ccode = curl_easy_setopt(_handle, CURLOPT_FOLLOWLOCATION, 1);
if ( ccode != CURLE_OK ) {
throw gnash::GnashException(curl_easy_strerror(ccode));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/libbase curl_adapter.cpp,
Bastiaan Jacques <=