]> granicus.if.org Git - apache/commitdiff
axe a special check for EOF+data from apr_file_gets()... apr_file_gets()
authorJeff Trawick <trawick@apache.org>
Mon, 28 Jul 2003 20:10:42 +0000 (20:10 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 28 Jul 2003 20:10:42 +0000 (20:10 +0000)
doesn't return that combination of conditions any more

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100826 13f79535-47bb-0310-9956-ffa450edef68

server/util.c

index 5a436c4fe3d5fa4fac6aee0e3530ec4576fec4c8..cf3ff2cadba65f68c0bbb3fd119d67b1a1551805 100644 (file)
@@ -887,8 +887,9 @@ static void *cfg_getstr(void *buf, size_t bufsiz, void *param)
     apr_file_t *cfp = (apr_file_t *) param;
     apr_status_t rv;
     rv = apr_file_gets(buf, bufsiz, cfp);
-    if (rv == APR_SUCCESS || (APR_STATUS_IS_EOF(rv) && strcmp(buf, "")))
+    if (rv == APR_SUCCESS) {
         return buf;
+    }
     return NULL;
 }