summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2003-04-04 07:50:59 +0000
committerMartin Pool <mbp@samba.org>2003-04-04 07:50:59 +0000
commitb5e7b9dbeadfd64e28e4b837222703b4060fb7f9 (patch)
treeaf68a057f0707fa2b0a42926e09ab93a5784d419 /source3/lib
parent36803da8f9e9fb2b646d49584384c938c1e706d7 (diff)
downloadsamba-b5e7b9dbeadfd64e28e4b837222703b4060fb7f9.tar.gz
samba-b5e7b9dbeadfd64e28e4b837222703b4060fb7f9.tar.bz2
samba-b5e7b9dbeadfd64e28e4b837222703b4060fb7f9.zip
lazy_initialize_conv: Remove redundant call to init_valid_table,
because init_iconv calls it for us. init_iconv: Add documentation about how this is reintialized when configuration is reloaded. (This used to be commit 0ee80a9018601fbba1c9558545de61cb16e94fac)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/charcnv.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/lib/charcnv.c b/source3/lib/charcnv.c
index 42cba33483..dc270b94b7 100644
--- a/source3/lib/charcnv.c
+++ b/source3/lib/charcnv.c
@@ -67,14 +67,16 @@ static void lazy_initialize_conv(void)
initialized = True;
load_case_tables();
init_iconv();
- init_valid_table();
}
}
/**
- Initialize iconv conversion descriptors.
-**/
-
+ * Initialize iconv conversion descriptors.
+ *
+ * This is called the first time it is needed, and also called again
+ * every time the configuration is reloaded, because the charset or
+ * codepage might have changed.
+ **/
void init_iconv(void)
{
int c1, c2;