]> git.ipfire.org Git - thirdparty/curl.git/commit
sendf: remove unnecessary if condition
authorJoel Depooter <joel.depooter@safe.com>
Wed, 26 Oct 2022 00:12:30 +0000 (17:12 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 26 Oct 2022 09:48:59 +0000 (11:48 +0200)
commitdf77eff27871fc755f04d5d7dc1ba2b2133fcd04
tree05fc9a588cdf0175003c39576fa102e8885c9571
parentb51560b9ffc9494dc04b2cad927cb69ab9087d48
sendf: remove unnecessary if condition

At this point, the psnd->buffer will always exist. We have already
allocated a new buffer if one did not previously exist, and returned
from the function if the allocation failed.

Closes #9801
lib/sendf.c