summaryrefslogtreecommitdiff
path: root/source/torture/smbiconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/torture/smbiconv.c')
-rw-r--r--source/torture/smbiconv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/torture/smbiconv.c b/source/torture/smbiconv.c
index ce21a09025e..3524136fb1e 100644
--- a/source/torture/smbiconv.c
+++ b/source/torture/smbiconv.c
@@ -198,6 +198,10 @@ int main(int argc, char *argv[])
while(poptGetNextOpt(pc) != -1);
+ /* the following functions are part of the Samba debugging
+ facilities. See lib/debug.c */
+ setup_logging("smbiconv", True);
+
if(preload)smb_load_modules(str_list_make(preload, NULL));
if(output) {
@@ -209,10 +213,6 @@ int main(int argc, char *argv[])
}
}
- /* the following functions are part of the Samba debugging
- facilities. See lib/debug.c */
- setup_logging("smbiconv", True);
-
cd = smb_iconv_open(to, from);
if((int)cd == -1) {
DEBUG(0,("unable to find from or to encoding, exiting...\n"));