httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1226493 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c
Date Mon, 02 Jan 2012 17:39:27 GMT
Author: sf
Date: Mon Jan  2 17:39:27 2012
New Revision: 1226493

URL: http://svn.apache.org/viewvc?rev=1226493&view=rev
Log:
remove unused variable, exit loop early when done

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c?rev=1226493&r1=1226492&r2=1226493&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_cte.c Mon Jan  2 17:39:27 2012
@@ -137,28 +137,18 @@ apr_size_t mbox_cte_decode_b64(char *src
 {
     apr_size_t len = 0;
 
-    int newline = 1, data_done = 0;
+    int data_done = 0;
     int c1, c2, c3, c4;
     char *dst;
 
     dst = src;
 
     while ((c1 = *src++) != '\0') {
-        if (isspace(c1)) {
-            if (c1 == '\n') {
-                newline = 1;
-            }
-            else {
-                newline = 0;
-            }
+        if (isspace(c1))
             continue;
-        }
-
-        if (data_done) {
-            continue;
-        }
 
-        newline = 0;
+        if (data_done)
+            break;
 
         do {
             c2 = *src++;



Mime
View raw message