1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Fix some obvious errors in ccurl_thread.cc

However, the whole thing still doesn't quite work for me.... It crashes on exit.
This commit is contained in:
Pavel Labath 2010-11-12 20:00:24 +01:00
parent 9a08141389
commit d899f603d3
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ ccurl_location_ptr ccurl_find_location(ccurl_location_list &locations, const std
}
ccurl_location_ptr next = ccurl_location_ptr(new ccurl_location_t);
DBGP("new curl location: '%s'", uri.c_str());
next->uri = std::string(uri, text_buffer_size);
next->uri = uri;
locations.push_back(next);
return next;
}

View File

@ -32,7 +32,7 @@
/* curl thread lib exports begin */
struct ccurl_location_t {
ccurl_location_t() : uri(0), last_modified(0), etag(0), result(0) {}
ccurl_location_t() : result(0) {}
/* uri of location */
std::string uri;
std::string last_modified;