diff options
author | simonb <simonb> | 2006-05-20 15:23:54 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-05-20 15:23:54 (GMT) |
commit | 460f57a4ad63001e5ae2b3f9df763ba27aec5727 (patch) | |
tree | f9e1d6c80650fb80960c9e4b0514f10b5cc920df /src/FbTk/FbString.cc | |
parent | 70a834f80c1bfba456a20641138a5cfbe1fe4797 (diff) | |
download | fluxbox-460f57a4ad63001e5ae2b3f9df763ba27aec5727.zip fluxbox-460f57a4ad63001e5ae2b3f9df763ba27aec5727.tar.bz2 |
fix error when running with -i (or similar "don't start Fluxbox class"
options
Diffstat (limited to 'src/FbTk/FbString.cc')
-rw-r--r-- | src/FbTk/FbString.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FbTk/FbString.cc b/src/FbTk/FbString.cc index 6c5ffbb..9a575bf 100644 --- a/src/FbTk/FbString.cc +++ b/src/FbTk/FbString.cc | |||
@@ -54,6 +54,11 @@ static int iconv_convs[CONVSIZE]; | |||
54 | 54 | ||
55 | /// Initialise all of the iconv conversion descriptors | 55 | /// Initialise all of the iconv conversion descriptors |
56 | void init() { | 56 | void init() { |
57 | static bool s_init = false; | ||
58 | if (s_init) | ||
59 | return; | ||
60 | s_init = true; | ||
61 | |||
57 | iconv_convs = new iconv_t[CONVSIZE]; | 62 | iconv_convs = new iconv_t[CONVSIZE]; |
58 | 63 | ||
59 | setlocale(LC_CTYPE, ""); | 64 | setlocale(LC_CTYPE, ""); |