]> granicus.if.org Git - apache/commitdiff
No need for the if statement here.
authorRyan Bloom <rbb@apache.org>
Sun, 8 Oct 2000 23:22:35 +0000 (23:22 +0000)
committerRyan Bloom <rbb@apache.org>
Sun, 8 Oct 2000 23:22:35 +0000 (23:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86458 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_protocol.c

index 03a2ad3d82a9fe32be21bda4a707aefbb07fed27..a97f362e9d8edbbdbbc2389da217a5a2c35a1b1f 100644 (file)
@@ -1023,7 +1023,7 @@ static int getline(char *s, int n, conn_rec *c, int fold)
         */
         if ((toss = ap_strchr_c(temp, ASCII_LF)) != NULL) { 
             length = toss - temp + 1;
-            e->split(e, length + (temp[length] == '\0' ? 1 : 0));
+            e->split(e, length + (temp[length] == '\0'));
             apr_cpystrn(pos, temp, length + 1);
            
             AP_BUCKET_REMOVE(e);