summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-05 09:20:13 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-04-05 12:56:18 +0200
commitab5a6cf6039f5a478195ebe8d92b7eccd271fda8 (patch)
treeed11d267507e16b762c863042ddd9f7e1859b1b5
parent1369b7429958a22a76754a28bc6c6743c62fa23d (diff)
downloadcurl-ab5a6cf6039f5a478195ebe8d92b7eccd271fda8.tar.gz
ftplistparser: fix LGTM alert "Empty block without comment"
Removing the block is consistent with line 954/957. Closes https://github.com/curl/curl/pull/3732
-rw-r--r--lib/ftplistparser.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index 1b1de5c3c..c4eb43732 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -914,10 +914,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
case PL_WINNT_DIRORSIZE:
switch(parser->state.NT.sub.dirorsize) {
case PL_WINNT_DIRORSIZE_PRESPACE:
- if(c == ' ') {
-
- }
- else {
+ if(c != ' ') {
parser->item_offset = finfo->b_used - 1;
parser->item_length = 1;
parser->state.NT.sub.dirorsize = PL_WINNT_DIRORSIZE_CONTENT;