]> granicus.if.org Git - curl/commit
transfer: fix LGTM alert "Comparison is always true"
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 5 Apr 2019 07:14:28 +0000 (09:14 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Fri, 5 Apr 2019 10:56:10 +0000 (12:56 +0200)
commit1369b7429958a22a76754a28bc6c6743c62fa23d
treeb1f9b2c57adc0b395d8ea6c53da28667acca9e1d
parentf5a77473c5397982a9e6ad74de20ccab3d5b31cc
transfer: fix LGTM alert "Comparison is always true"

Just remove the redundant condition, which also makes it clear that
k->buf is always 0-terminated if this break is not hit.

Closes https://github.com/curl/curl/pull/3732
lib/transfer.c