You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2017/03/10 20:56:34 UTC

svn commit: r1786445 - /subversion/trunk/subversion/libsvn_fs_fs/cached_data.c

Author: stefan2
Date: Fri Mar 10 20:56:34 2017
New Revision: 1786445

URL: http://svn.apache.org/viewvc?rev=1786445&view=rev
Log:
Fix a static code analysis warning.

* subversion/libsvn_fs_fs/cached_data.c
  (svn_fs_fs__get_contents_from_file): Make sure all struct elements values
                                       are well-defined.

Reported by: rhuijben

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

Modified: subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_fs_fs/cached_data.c?rev=1786445&r1=1786444&r2=1786445&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_fs_fs/cached_data.c (original)
+++ subversion/trunk/subversion/libsvn_fs_fs/cached_data.c Fri Mar 10 20:56:34 2017
@@ -2297,7 +2297,7 @@ svn_fs_fs__get_contents_from_file(svn_st
     }
   else
     {
-      representation_t next_rep;
+      representation_t next_rep = { 0 };
 
       /* skip "SVNx" diff marker */
       rs->current = 4;