No need for memset to clear a byte.
This commit is contained in:
parent
1a46ee716d
commit
4f82d1ba99
@ -139,7 +139,7 @@ HttpGet::HttpGet (bool p, bool ssl)
|
|||||||
, _status (-1)
|
, _status (-1)
|
||||||
, _result (-1)
|
, _result (-1)
|
||||||
{
|
{
|
||||||
memset (error_buffer, 0, sizeof (*error_buffer));
|
error_buffer[0] = 0;
|
||||||
_curl = curl_easy_init ();
|
_curl = curl_easy_init ();
|
||||||
|
|
||||||
if (!_curl) {
|
if (!_curl) {
|
||||||
@ -205,7 +205,7 @@ HttpGet::get (const char* url)
|
|||||||
free (mem.data);
|
free (mem.data);
|
||||||
} // otherwise caller is expected to have free()d or re-used it.
|
} // otherwise caller is expected to have free()d or re-used it.
|
||||||
|
|
||||||
memset (error_buffer, 0, sizeof (*error_buffer));
|
error_buffer[0] = 0;
|
||||||
mem.data = NULL;
|
mem.data = NULL;
|
||||||
mem.size = 0;
|
mem.size = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user