lib: Move get_iconv_handle() call down
commitdee2b958c0412296e7944a120d28dd0a350f0223
authorVolker Lendecke <vl@samba.org>
Mon, 23 Mar 2015 15:03:47 +0000 (23 15:03 +0000)
committerVolker Lendecke <vl@samba.org>
Mon, 23 Mar 2015 20:21:15 +0000 (23 21:21 +0100)
tree07746148bdd3be01b85045ca47c21fcb7dd28462
parent8de21648351a5d89c8c58dbdf771c1c06a3d7e51
lib: Move get_iconv_handle() call down

We only need this in the slow path. A good compiler might detect this,
but as get_iconv_handle() might have side-effects from a compiler's
point of view, I'm not sure it's legal to skip the call in the fast
path. Might be premature optimization, but it's low hanging fruit :-)

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed by: Ira Cooper <ira@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Mar 23 21:21:15 CET 2015 on sn-devel-104
lib/util/charset/util_str.c