cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: AIX, xlc vs gcc!

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Wed, 12 May 2004 08:34:29 +0200 (CEST)

On Tue, 11 May 2004, Tor Arntsen wrote:

> It looks like you fixed it, I logged in an ran an autobuild.

I think I found the flaw just now. For the curious minded, the (bad) code
looked like this:

  size += AddFormData(&form, "\"", 0, &size);

(You should also know that AddFormData() itself adds to the size variable.)

In this case AddFormData() returns CURLE_OK (= 0), and it seems with xlc this
assignment overrides the increment within the function, but not on gcc! ;-)

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-05-12