]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
email: Post optimisation of endofresp() tidy up
authorSteve Holme <steve_holme@hotmail.com>
Tue, 12 Feb 2013 21:01:50 +0000 (21:01 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Tue, 12 Feb 2013 21:01:50 +0000 (21:01 +0000)
Removed unnecessary end of line check and return.

lib/imap.c
lib/pop3.c
lib/smtp.c

index c4bddab7a30eb019edd8930af7c227d1a8886cd6..320101b5d6e31641039b85e7373097d6a41e6cce 100644 (file)
@@ -363,9 +363,6 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
               (*line == ' ' || *line == '\t' ||
                *line == '\r' || *line == '\n')) {
 
-          if(*line == '\n')
-            return FALSE;
-
           line++;
           len--;
         }
index 263d8703a19c3f49fe99addf30a546e5d27a0fc0..3fbe14e616fb9d7db12d8de60faeee0a0005c1ab 100644 (file)
@@ -293,9 +293,6 @@ static bool pop3_endofresp(struct connectdata *conn, char *line, size_t len,
               (*line == ' ' || *line == '\t' ||
                *line == '\r' || *line == '\n')) {
 
-          if(*line == '\n')
-            return FALSE;
-
           line++;
           len--;
         }
index 68dbf9a2634933d0a62ffbe3228443562cac93b6..456d986aad5153769520fb87a623a6299d970940 100644 (file)
@@ -254,9 +254,6 @@ static bool smtp_endofresp(struct connectdata *conn, char *line, size_t len,
               (*line == ' ' || *line == '\t' ||
                *line == '\r' || *line == '\n')) {
 
-          if(*line == '\n')
-            return FALSE;
-
           line++;
           len--;
         }