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 2010/06/22 08:53:24 UTC

svn commit: r956792 - /subversion/trunk/subversion/libsvn_diff/parse-diff.c

Author: dannas
Date: Tue Jun 22 06:53:24 2010
New Revision: 956792

URL: http://svn.apache.org/viewvc?rev=956792&view=rev
Log:
* subversion/libsvn_diff/parse-diff.c
  (svn_diff_parse_next_patch): Limit the scope of two variables.

Modified:
    subversion/trunk/subversion/libsvn_diff/parse-diff.c

Modified: subversion/trunk/subversion/libsvn_diff/parse-diff.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_diff/parse-diff.c?rev=956792&r1=956791&r2=956792&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_diff/parse-diff.c (original)
+++ subversion/trunk/subversion/libsvn_diff/parse-diff.c Tue Jun 22 06:53:24 2010
@@ -592,8 +592,6 @@ svn_diff_parse_next_patch(svn_patch_t **
   const char *fname;
   svn_stream_t *stream;
   svn_boolean_t eof, in_header;
-  svn_hunk_t *hunk;
-  const char *prop_name;
 
   apr_pool_t *iterpool;
 
@@ -685,6 +683,9 @@ svn_diff_parse_next_patch(svn_patch_t **
     }
   else
     {
+      svn_hunk_t *hunk;
+      const char *prop_name;
+
       /* Parse hunks. */
       (*patch)->hunks = apr_array_make(result_pool, 10, sizeof(svn_hunk_t *));
       (*patch)->property_hunks = apr_hash_make(result_pool);