From: Jeff Trawick Date: Wed, 23 Jan 2002 20:55:10 +0000 (+0000) Subject: set the variable before looking at it X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccccd0369a59e23d4e8cc54a2bd83012f9d18fec;p=thirdparty%2Fapache%2Fhttpd.git set the variable before looking at it git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92988 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/dav/fs/repos.c b/modules/dav/fs/repos.c index a74adf9e522..2ebdc0bbf45 100644 --- a/modules/dav/fs/repos.c +++ b/modules/dav/fs/repos.c @@ -769,8 +769,8 @@ static dav_error * dav_fs_get_parent_resource(const dav_resource *resource, parent_resource->uri = uri; } - apr_stat(&parent_ctx->finfo, parent_ctx->pathname, - APR_FINFO_NORM, ctx->pool); + rv = apr_stat(&parent_ctx->finfo, parent_ctx->pathname, + APR_FINFO_NORM, ctx->pool); if (rv == APR_SUCCESS || rv == APR_INCOMPLETE) { parent_resource->exists = 1; }