[MacPorts] #60581: garbage error output from failed curl

MacPorts noreply at macports.org
Fri Jun 12 07:18:14 UTC 2020


#60581: garbage error output from failed curl
-------------------------+--------------------
  Reporter:  ryandesign  |      Owner:  (none)
      Type:  defect      |     Status:  new
  Priority:  Normal      |  Milestone:
 Component:  base        |    Version:  2.6.2
Resolution:              |   Keywords:
      Port:              |
-------------------------+--------------------

Comment (by ryandesign):

 The example code in the documentation shows that the buffer should be
 initialized to the empty string using:

 {{{
   char errbuf[CURL_ERROR_SIZE];
 }}}
 {{{
   /* set the error buffer as empty before performing a request */
   errbuf[0] = 0;
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/60581#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list