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

[PATCH] Small clean up

From: Yoshiki Hayashi <yoshiki_at_xemacs.org>
Date: 2001-03-07 11:03:39 CET

* tree.c (txn_body_node_prop): Use
  svn_fs__atom_matches_string instead of length checking and
  memcmp.

Index: subversion/libsvn_fs/tree.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_fs/tree.c,v
retrieving revision 1.31
diff -u -r1.31 tree.c
--- subversion/libsvn_fs/tree.c 2001/03/06 16:56:09 1.31
+++ subversion/libsvn_fs/tree.c 2001/03/07 09:54:15
@@ -618,8 +618,7 @@
       skel_t *name = prop;
       skel_t *value = prop->next;
 
- if (name->len == args->propname->len
- && ! memcmp (name->data, args->propname->data, name->len))
+ if (svn_fs__atom_matches_string (name, args->propname))
         {
           *(args->value_p) = svn_string_ncreate (value->data, value->len,
                                                  trail->pool);

-- 
Yoshiki Hayashi
Received on Sat Oct 21 14:36:25 2006

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