diff options
author | Robin Gareus <robin@gareus.org> | 2017-11-23 10:10:32 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-11-23 10:10:32 +0100 |
commit | 4f82d1ba99b204006c17d5622c4d6cf9c566f63d (patch) | |
tree | 37c55c53f202be7cb9b9d436f12c502ef637ee9f /gtk2_ardour/ardour_http.cc | |
parent | 1a46ee716dbcbf452e7aa3d3312cf81310f1ff20 (diff) |
No need for memset to clear a byte.
Diffstat (limited to 'gtk2_ardour/ardour_http.cc')
-rw-r--r-- | gtk2_ardour/ardour_http.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_http.cc b/gtk2_ardour/ardour_http.cc index 23edbc62e8..320e1f8127 100644 --- a/gtk2_ardour/ardour_http.cc +++ b/gtk2_ardour/ardour_http.cc @@ -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; |