]> granicus.if.org Git - apache/commitdiff
Cosmetics: remove redundancy
authorMartin Kraemer <martin@apache.org>
Tue, 30 Sep 2003 09:30:06 +0000 (09:30 +0000)
committerMartin Kraemer <martin@apache.org>
Tue, 30 Sep 2003 09:30:06 +0000 (09:30 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101356 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index e125d72b8f06b3718507ceaa0cdd2b3d6dd2d511..cb4ddd1f9b3ca46b2231223d38202540913f1440 100644 (file)
@@ -4130,20 +4130,17 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
                                      &bytes_sent,   /* how many bytes were
                                                        sent                 */
                                      flags);   /* apr_sendfile flags        */
-
-                if (logio_add_bytes_out && bytes_sent > 0)
-                    logio_add_bytes_out(c, bytes_sent);
             }
             else
 #endif
             {
                 rv = emulate_sendfile(net, fd, &hdtr, foffset, flen,
                                       &bytes_sent);
-
-                if (logio_add_bytes_out && bytes_sent > 0)
-                    logio_add_bytes_out(c, bytes_sent);
             }
 
+            if (logio_add_bytes_out && bytes_sent > 0)
+                logio_add_bytes_out(c, bytes_sent);
+
             fd = NULL;
         }
         else {