1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

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
This commit is contained in:
Marcel Raad 2019-04-05 09:20:13 +02:00
parent 1369b74299
commit ab5a6cf603
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD

View File

@ -914,10 +914,7 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
case PL_WINNT_DIRORSIZE: case PL_WINNT_DIRORSIZE:
switch(parser->state.NT.sub.dirorsize) { switch(parser->state.NT.sub.dirorsize) {
case PL_WINNT_DIRORSIZE_PRESPACE: case PL_WINNT_DIRORSIZE_PRESPACE:
if(c == ' ') { if(c != ' ') {
}
else {
parser->item_offset = finfo->b_used - 1; parser->item_offset = finfo->b_used - 1;
parser->item_length = 1; parser->item_length = 1;
parser->state.NT.sub.dirorsize = PL_WINNT_DIRORSIZE_CONTENT; parser->state.NT.sub.dirorsize = PL_WINNT_DIRORSIZE_CONTENT;