]> granicus.if.org Git - curl/commit
transfer: Fixed existing scratch buffer being checked for NULL twice
authorSteve Holme <steve_holme@hotmail.com>
Sun, 30 Nov 2014 14:45:20 +0000 (14:45 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 30 Nov 2014 15:06:13 +0000 (15:06 +0000)
commit785d76d681fecffd8941159daeef6fda0877a208
treee9dbaf78ec5c4e9e9707e056638e6df2b0f5364a
parent9afd97022eb3ff586b13d33a7d85ce502d06e93c
transfer: Fixed existing scratch buffer being checked for NULL twice

If the scratch buffer already existed when the CRLF conversion was
performed then the buffer pointer would be checked twice for NULL. This
second check is only necessary if the call to malloc() was performed by
the first check.
lib/transfer.c