You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2011/05/07 17:10:48 UTC

svn commit: r1100556 - /subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c

Author: danielsh
Date: Sat May  7 15:10:48 2011
New Revision: 1100556

URL: http://svn.apache.org/viewvc?rev=1100556&view=rev
Log:
* subversion/libsvn_fs_fs/fs_fs.c\n  (path_and_offset_of): Set OFFSET before calling apr_file_seek().\n\n(This makes the reported values be sane, so I assume that's what\nthe API specifies I should do.)

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=1100556&r1=1100555&r2=1100556&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/fs_fs.c Sat May  7 15:10:48 2011
@@ -404,7 +404,7 @@ static APR_INLINE const char *
 path_and_offset_of(apr_file_t *file, apr_pool_t *pool)
 {
   const char *path;
-  apr_off_t offset;
+  apr_off_t offset = 0;
 
   if (apr_file_name_get(&path, file) != APR_SUCCESS)
     path = "(unknown)";