You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2018/09/05 17:00:25 UTC

svn commit: r1840147 - /apr/apr/branches/1.7.x/file_io/win32/buffer.c

Author: wrowe
Date: Wed Sep  5 17:00:25 2018
New Revision: 1840147

URL: http://svn.apache.org/viewvc?rev=1840147&view=rev
Log:
Correct copy-paste flaw (inherited by borrowing from readwrite.c)

Modified:
    apr/apr/branches/1.7.x/file_io/win32/buffer.c

Modified: apr/apr/branches/1.7.x/file_io/win32/buffer.c
URL: http://svn.apache.org/viewvc/apr/apr/branches/1.7.x/file_io/win32/buffer.c?rev=1840147&r1=1840146&r2=1840147&view=diff
==============================================================================
--- apr/apr/branches/1.7.x/file_io/win32/buffer.c (original)
+++ apr/apr/branches/1.7.x/file_io/win32/buffer.c Wed Sep  5 17:00:25 2018
@@ -23,7 +23,7 @@ APR_DECLARE(apr_status_t) apr_file_buffe
 {
     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_buffe
         /* 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_buffe
             file->buffered = 0;
     }
     
-    if (thefile->flags & APR_FOPEN_XTHREAD) {
+    if (file->flags & APR_FOPEN_XTHREAD) {
         apr_thread_mutex_unlock(file->mutex);
     }