summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2007-12-16 00:19:42 +0100
committerJeremy Allison <jra@samba.org>2007-12-16 10:57:00 -0800
commite28c6813e024d40104969ce8c73b503c053c41cd (patch)
tree3c562b8abe13be82d5c683f542fb6ca113c8110d /source3
parent2ae400b213a673253da0e3088ce1c3f54d9681cc (diff)
downloadsamba-e28c6813e024d40104969ce8c73b503c053c41cd.tar.gz
samba-e28c6813e024d40104969ce8c73b503c053c41cd.tar.bz2
samba-e28c6813e024d40104969ce8c73b503c053c41cd.zip
Tiny fixes to init_valid_table()
(This used to be commit a8948e0727b100945ab730d4d144ccbe219bbc94)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_unistr.c4
1 files changed, 2 insertions, 2 deletions
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);
}