gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 59/116: fnmatch: remove dead code


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 59/116: fnmatch: remove dead code
Date: Tue, 05 Dec 2017 14:51:29 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 6e6bf60357f4587a7e61d34eba40b24ef9c62ac8
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Nov 6 09:01:53 2017 +0100

    fnmatch: remove dead code
    
    There was a duplicate check for backslashes in the setcharset()
    function.
    
    Coverity CID 1420611
---
 lib/curl_fnmatch.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/lib/curl_fnmatch.c b/lib/curl_fnmatch.c
index 5a6f137c8..da83393b4 100644
--- a/lib/curl_fnmatch.c
+++ b/lib/curl_fnmatch.c
@@ -235,12 +235,7 @@ static int setcharset(unsigned char **p, unsigned char 
*charset)
         return SETCHARSET_FAIL;
       break;
     case CURLFNM_SCHS_MAYRANGE2:
-      if(c == '\\') {
-        c = *(++(*p));
-        if(!ISPRINT(c))
-          return SETCHARSET_FAIL;
-      }
-      else if(c == ']') {
+      if(c == ']') {
         return SETCHARSET_OK;
       }
       else if(c == '\\') {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]