patch-src_hash_c 453 B

12345678910111213
  1. $OpenBSD: patch-src_hash_c,v 1.1 2011/05/02 06:55:07 kevlo Exp $
  2. --- src/hash.c.orig Mon May 2 12:34:53 2011
  3. +++ src/hash.c Mon May 2 13:05:53 2011
  4. @@ -524,7 +524,7 @@ int InitHash( const char *path )
  5. } else {
  6. sprintf( hashfilename, "%s" PLAT_SEPARATOR "%s", path, HASH_FILE );
  7. }
  8. - memset( hashtable, (int) NULL, HASH_TABLE_SIZE );
  9. + memset( hashtable, 0, HASH_TABLE_SIZE );
  10. open_hash_file:
  11. dump = _load_hash_file( hashfilename, &fsize );