summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_http.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/ardour_http.cc')
-rw-r--r--gtk2_ardour/ardour_http.cc4
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;