Author: danielsh
Date: Wed Aug  7 10:45:37 2013
New Revision: 1511242

URL: http://svn.apache.org/r1511242
Log:
Remove unused variable.

* subversion/libsvn_subr/packed_data.c
  (read_byte_stream_structure): Avoid having an unused variable.

Modified:
    subversion/trunk/subversion/libsvn_subr/packed_data.c

Modified: subversion/trunk/subversion/libsvn_subr/packed_data.c
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/packed_data.c?rev=1511242&r1=1511241&r2=1511242&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/packed_data.c (original)
+++ subversion/trunk/subversion/libsvn_subr/packed_data.c Wed Aug  7 10:45:37 
2013
@@ -907,12 +907,15 @@ read_byte_stream_structure(svn_stringbuf
                            svn_packed__byte_stream_t *stream,
                            svn_packed__int_stream_t *first_int_stream)
 {
-  /* read parameters from the TREE_STRUCT buffer */
-  apr_size_t dummy = (apr_size_t)read_packed_uint(tree_struct);
-  apr_size_t lengths_stream_index = (apr_size_t)read_packed_uint(tree_struct);
-  apr_size_t packed_size = (apr_size_t)read_packed_uint(tree_struct);
+  apr_size_t lengths_stream_index;
+  apr_size_t packed_size;
   apr_size_t i;
 
+  /* read parameters from the TREE_STRUCT buffer */
+  (void) (apr_size_t)read_packed_uint(tree_struct); /* discard first uint */
+  lengths_stream_index = (apr_size_t)read_packed_uint(tree_struct);
+  packed_size = (apr_size_t)read_packed_uint(tree_struct);
+
   /* allocate byte sequence buffer size */
   svn_stringbuf_ensure(stream->packed, packed_size);
   stream->packed->len = packed_size;


Reply via email to