From e28c6813e024d40104969ce8c73b503c053c41cd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 16 Dec 2007 00:19:42 +0100 Subject: Tiny fixes to init_valid_table() (This used to be commit a8948e0727b100945ab730d4d144ccbe219bbc94) --- source3/lib/util_unistr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/lib/util_unistr.c') diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 510f40e611..2949d7d795 100644 --- a/source3/lib/util_unistr.c +++ b/source3/lib/util_unistr.c @@ -247,14 +247,14 @@ void init_valid_table(void) * It might need to be regenerated if the code page changed. * We know that we're not using a mapped file, so we can * free() the old one. */ - if (valid_table) - SAFE_FREE(valid_table); + SAFE_FREE(valid_table); /* use free rather than unmap */ valid_table_use_unmap = False; DEBUG(2,("creating default valid table\n")); valid_table = (uint8 *)SMB_MALLOC(0x10000); + SMB_ASSERT(valid_table != NULL); for (i=0;i<128;i++) { valid_table[i] = isalnum(i) || strchr(allowed,i); } -- cgit