1. 24 Apr, 2017 2 commits
  2. 23 Apr, 2017 2 commits
  3. 22 Apr, 2017 4 commits
    • Alan Jenkins's avatar
      multi: clarify condition in curl_multi_wait · be299a4d
      Alan Jenkins authored
      `if(nfds || extra_nfds) {` is followed by `malloc(nfds * ...)`.
      
      If `extra_fs` could be non-zero when `nfds` was zero, then we have
      `malloc(0)` which is allowed to return `NULL`. But, malloc returning
      NULL can be confusing. In this code, the next line would treat the NULL
      as an allocation failure.
      
      It turns out, if `nfds` is zero then `extra_nfds` must also be zero.
      The final value of `nfds` includes `extra_nfds`.  So the test for
      `extra_nfds` is redundant.  It can only confuse the reader.
      
      Closes #1439
      be299a4d
    • Marcel Raad's avatar
      lib: fix maybe-uninitialized warnings · 4a8cf6c4
      Marcel Raad authored
      With -Og, GCC complains:
      
      easy.c:628:7: error: ‘mcode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      
      ../lib/strcase.h:35:29: error: ‘tok_buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      vauth/digest.c:208:9: note: ‘tok_buf’ was declared here
      
      ../lib/strcase.h:35:29: error: ‘tok_buf’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
      vauth/digest.c:566:15: note: ‘tok_buf’ was declared here
      
      Fix this by initializing the variables.
      4a8cf6c4
    • Dan Fandrich's avatar
      gnutls: removed some code when --disable-verbose is configured · f761da76
      Dan Fandrich authored
      This reduces the binary size and fixes a compile warning.
      f761da76
    • Daniel Stenberg's avatar
      llist: no longer uses malloc · cbae73e1
      Daniel Stenberg authored
      The 'list element' struct now has to be within the data that is being
      added to the list. Removes 16.6% (tiny) mallocs from a simple HTTP
      transfer. (96 => 80)
      
      Also removed return codes since the llist functions can't fail now.
      
      Test 1300 updated accordingly.
      
      Closes #1435
      cbae73e1
  4. 21 Apr, 2017 3 commits
  5. 20 Apr, 2017 2 commits
  6. 19 Apr, 2017 4 commits
  7. 18 Apr, 2017 2 commits
  8. 17 Apr, 2017 7 commits
  9. 16 Apr, 2017 2 commits
  10. 15 Apr, 2017 3 commits
  11. 12 Apr, 2017 2 commits
  12. 11 Apr, 2017 4 commits
  13. 10 Apr, 2017 3 commits