[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH][merge-tracking]code cleanup of append_component_to_paths

From: Kamesh Jayachandran <kamesh_at_collab.net>
Date: 2006-10-09 10:31:10 CEST

Hi All,
Find the attached patch and log.

With regards
Kamesh Jayachandran

[[[
Patch by: Kamesh Jayachandran <kamesh@collab.net>

No need to get the key length as keys here are APR_HASH_KEY_STRING.

* subversion/libsvn_fs_util/merge-info-sqlite-index.c
  (append_component_to_paths):
   No need to get the key length as keys here are APR_HASH_KEY_STRING.
]]]

Index: subversion/libsvn_fs_util/merge-info-sqlite-index.c
===================================================================
--- subversion/libsvn_fs_util/merge-info-sqlite-index.c (revision 21840)
+++ subversion/libsvn_fs_util/merge-info-sqlite-index.c (working copy)
@@ -380,10 +380,9 @@
     {
       const void *key;
       void *val;
- apr_ssize_t klen;
       char *newpath;
 
- apr_hash_this(hi, &key, &klen, &val);
+ apr_hash_this(hi, &key, NULL, &val);
       newpath = svn_path_join((const char *)key, toappend, pool);
       apr_hash_set(*output, newpath, APR_HASH_KEY_STRING, val);
     }

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Oct 9 10:30:52 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.