subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@apache.org
Subject svn commit: r1333779 - /subversion/trunk/subversion/libsvn_subr/hash.c
Date Fri, 04 May 2012 07:08:33 GMT
Author: stefan2
Date: Fri May  4 07:08:33 2012
New Revision: 1333779

URL: http://svn.apache.org/viewvc?rev=1333779&view=rev
Log:
* subversion/libsvn_subr/hash.c
  (hashfunc_fast): fix copy-n-pasto

Found by: hwright

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

Modified: subversion/trunk/subversion/libsvn_subr/hash.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_subr/hash.c?rev=1333779&r1=1333778&r2=1333779&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_subr/hash.c (original)
+++ subversion/trunk/subversion/libsvn_subr/hash.c Fri May  4 07:08:33 2012
@@ -656,7 +656,7 @@ hashfunc_fast(const char *char_key, apr_
 
             hash = (hash + chunk) * 0xd1f3da69;
           }
-        for (; i; i--, p++)
+        for (; *p; p++)
             hash = hash * 33 + *p;
 
         *klen = p - key;



Mime
View raw message