Skip to content

Fix LGTM alerts - #3732

Closed
MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:lgtm
Closed

Fix LGTM alerts#3732
MarcelRaad wants to merge 2 commits into
curl:masterfrom
MarcelRaad:lgtm

Conversation

@MarcelRaad

Copy link
Copy Markdown
Member

Fix "Comparison is always true" in transfer.c and "Empty block without comment" in ftplistparser.c. The rest is only about FIXMEs.

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

Closes
Removing the block is consistent with line 954/957.

Closes
@bagder

bagder commented Apr 5, 2019

Copy link
Copy Markdown
Member

This pull request fixes 2 alerts when merging 74d8f7d into f5a7747 - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same
  • 1 for Empty branch of conditional

Comment posted by LGTM.com

MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Apr 5, 2019
Removing the block is consistent with line 954/957.

Closes curl#3732
@MarcelRaad MarcelRaad closed this in 1369b74 Apr 5, 2019
@MarcelRaad
MarcelRaad deleted the lgtm branch April 5, 2019 10:57
@lock lock Bot locked as resolved and limited conversation to collaborators Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants