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:
parent
9a08141389
commit
d899f603d3
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user