Commit 2728c061 authored by Cliff Woolley's avatar Cliff Woolley
Browse files

Silence gcc warning about rv being used when possibly uninitialized. That

can only happen if n<=1 (ie, a bad parameter value), so I figure APR_EINVAL
is the correct default value.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89333 13f79535-47bb-0310-9956-ffa450edef68
parent 3e4a3cbc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ static int getline(char *s, int n, apr_file_t *f)
{
    register int i = 0;
    char ch;
    apr_status_t rv;
    apr_status_t rv = APR_EINVAL;

    while (i < (n - 1) && 
           ((rv = apr_file_getc(&ch, f)) == APR_SUCCESS) && (ch != '\n')) {