You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Yoshiki Hayashi <yo...@xemacs.org> on 2001/03/07 10:03:39 UTC

[PATCH] Small clean up

* 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