subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1786445 - /subversion/trunk/subversion/libsvn_fs_fs/cached_data.c
Date Fri, 10 Mar 2017 20:56:34 GMT
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;



Mime
View raw message