subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1359171 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
Date Mon, 09 Jul 2012 13:48:47 GMT
Author: rhuijben
Date: Mon Jul  9 13:48:47 2012
New Revision: 1359171

URL: http://svn.apache.org/viewvc?rev=1359171&view=rev
Log:
* subversion/libsvn_fs_fs/fs_fs.c
  (try_stringbuf_from_file): Following up on r1359142, just set *content to
    NULL on any error.

Modified:
    subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Modified: subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c?rev=1359171&r1=1359170&r2=1359171&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Mon Jul  9 13:48:47 2012
@@ -1616,6 +1616,8 @@ try_stringbuf_from_file(svn_stringbuf_t 
 
   if (err)
     {
+      *content = NULL;
+
       if (APR_STATUS_IS_ENOENT(err->apr_err))
         {
           if (!last_attempt)
@@ -1623,7 +1625,6 @@ try_stringbuf_from_file(svn_stringbuf_t 
               svn_error_clear(err);
               if (missing)
                 *missing = TRUE;
-              *content = NULL;
               return SVN_NO_ERROR;
             }
         }
@@ -1634,7 +1635,6 @@ try_stringbuf_from_file(svn_stringbuf_t 
           if (!last_attempt)
             {
               svn_error_clear(err);
-              *content = NULL;
               return SVN_NO_ERROR;
             }
         }



Mime
View raw message