]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use return status instead of character value for EOF.
authorBen Laurie <ben@apache.org>
Sat, 11 Sep 1999 22:14:11 +0000 (22:14 +0000)
committerBen Laurie <ben@apache.org>
Sat, 11 Sep 1999 22:14:11 +0000 (22:14 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83893 13f79535-47bb-0310-9956-ffa450edef68

modules/mappers/mod_negotiation.c

index 47e0319db2ee48bd2152ab4a964247ab9e22a7f4..840a9d6fb01c37560299726b63dc260fd89cb831 100644 (file)
@@ -678,8 +678,9 @@ static enum header_state get_header_line(char *buffer, int len, ap_file_t *map)
              * so that we will pick up the blank line the next time 'round.
              */
 
-            while (c != EOF && c != '\n' && ap_isspace(c)) {
-                ap_getc(map, &c);
+            while (c != '\n' && ap_isspace(c)) {
+                if(ap_getc(map, &c) != APR_SUCCESS)
+                   break;
             }
 
             ap_ungetc(map, c);