summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2018-09-05 17:01:01 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2018-09-05 17:01:01 +0000
commitc9697dc5a8283622305ebd6751fa69458680bb4e (patch)
tree6b0023403b010301bc2ec71d003b5331d111e6fc
parentfa3811a5d9a484c58466702626a4823957b41041 (diff)
downloadapr-c9697dc5a8283622305ebd6751fa69458680bb4e.tar.gz
Correct copy-paste flaw (inherited by borrowing from readwrite.c) (r1840147)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1840148 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--file_io/win32/buffer.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/file_io/win32/buffer.c b/file_io/win32/buffer.c
index a32016255..7f5d9d375 100644
--- a/file_io/win32/buffer.c
+++ b/file_io/win32/buffer.c
@@ -23,7 +23,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file,
{
apr_status_t rv;
- if (thefile->flags & APR_FOPEN_XTHREAD) {
+ if (file->flags & APR_FOPEN_XTHREAD) {
apr_thread_mutex_lock(file->mutex);
}
@@ -31,7 +31,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file,
/* Flush the existing buffer */
rv = apr_file_flush(file);
if (rv != APR_SUCCESS) {
- if (thefile->flags & APR_FOPEN_XTHREAD) {
+ if (file->flags & APR_FOPEN_XTHREAD) {
apr_thread_mutex_unlock(file->mutex);
}
return rv;
@@ -52,7 +52,7 @@ APR_DECLARE(apr_status_t) apr_file_buffer_set(apr_file_t *file,
file->buffered = 0;
}
- if (thefile->flags & APR_FOPEN_XTHREAD) {
+ if (file->flags & APR_FOPEN_XTHREAD) {
apr_thread_mutex_unlock(file->mutex);
}