13
0

No need for memset to clear a byte.

This commit is contained in:
Robin Gareus 2017-11-23 10:10:32 +01:00
parent 1a46ee716d
commit 4f82d1ba99

View File

@ -139,7 +139,7 @@ HttpGet::HttpGet (bool p, bool ssl)
, _status (-1)
, _result (-1)
{
memset (error_buffer, 0, sizeof (*error_buffer));
error_buffer[0] = 0;
_curl = curl_easy_init ();
if (!_curl) {
@ -205,7 +205,7 @@ HttpGet::get (const char* url)
free (mem.data);
} // 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.size = 0;