From: Jeff Trawick Date: Wed, 23 Jan 2002 20:55:10 +0000 (+0000) Subject: set the variable before looking at it X-Git-Tag: 2.0.31~115 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5ec0e4396315ed1d8316af2d6764b432e81c19ed;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; }