1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

Merge Anton's 64-bit fix.

Jeremy.
(This used to be commit 0644f6a68e)
This commit is contained in:
Jeremy Allison 2002-10-15 05:58:32 +00:00
parent 4bdfae3df7
commit b8e4a3331d

View File

@ -147,14 +147,12 @@ static BOOL cache_init(void)
{
if (prefix_cache) return True;
prefix_cache = malloc(sizeof(char *) * MANGLE_CACHE_SIZE);
prefix_cache = calloc(MANGLE_CACHE_SIZE, sizeof(char *));
if (!prefix_cache) return False;
prefix_cache_hashes = malloc(sizeof(u32) * MANGLE_CACHE_SIZE);
prefix_cache_hashes = calloc(MANGLE_CACHE_SIZE, sizeof(u32));
if (!prefix_cache_hashes) return False;
memset(prefix_cache, 0, sizeof(char *) * MANGLE_CACHE_SIZE);
memset(prefix_cache_hashes, 0, sizeof(char *) * MANGLE_CACHE_SIZE);
return True;
}