[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 16/219: ftplistparser: fix LGTM alert "Empty block
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 16/219: ftplistparser: fix LGTM alert "Empty block without comment" |
Date: |
Wed, 22 May 2019 19:15:55 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit ab5a6cf6039f5a478195ebe8d92b7eccd271fda8
Author: Marcel Raad <address@hidden>
AuthorDate: Fri Apr 5 09:20:13 2019 +0200
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
---
lib/ftplistparser.c | 5 +----
1 file changed, 1 insertion(+), 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;
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnurl] 16/219: ftplistparser: fix LGTM alert "Empty block without comment",
gnunet <=