diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-16 15:09:55 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-16 15:09:55 +0100 |
| commit | 707f64b85c8a1b88923617ff72bd8a4ca562f3bd (patch) | |
| tree | 19543e9df7d87a2204e944a332158137805e9a92 /lib/Plugins/Catcut.cpp | |
| parent | 1eae9a2bcc8583bf54ec7027ead9b0ae01861481 (diff) | |
| download | abrt-707f64b85c8a1b88923617ff72bd8a4ca562f3bd.tar.gz abrt-707f64b85c8a1b88923617ff72bd8a4ca562f3bd.tar.xz abrt-707f64b85c8a1b88923617ff72bd8a4ca562f3bd.zip | |
prevent destructors from throwing exceptions; check curl_easy_init errors
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Catcut.cpp')
| -rw-r--r-- | lib/Plugins/Catcut.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Plugins/Catcut.cpp b/lib/Plugins/Catcut.cpp index 35f56f2..a56015d 100644 --- a/lib/Plugins/Catcut.cpp +++ b/lib/Plugins/Catcut.cpp @@ -1,6 +1,3 @@ -#include <xmlrpc-c/base.h> -#include <xmlrpc-c/client.h> -#include <curl/curl.h> #include "abrtlib.h" #include "abrt_xmlrpc.h" #include "Catcut.h" @@ -18,11 +15,7 @@ using namespace std; static int put_stream(const char *pURL, FILE* f, size_t content_length) { - CURL* curl = curl_easy_init(); - if (!curl) - { - throw CABRTException(EXCEP_PLUGIN, "put_stream: can't initialize curl library"); - } + CURL* curl = xcurl_easy_init(); /* enable uploading */ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); /* specify target */ |
