diff --git a/src/sbbs3/ctrl/ConfigWizardUnit.cpp b/src/sbbs3/ctrl/ConfigWizardUnit.cpp
index cff9284d0122a438d87f90fd7474c9724e1dbee8..2d2c2d66a6d4b029b27e7b8ca1b23aa50595f4c9 100644
--- a/src/sbbs3/ctrl/ConfigWizardUnit.cpp
+++ b/src/sbbs3/ctrl/ConfigWizardUnit.cpp
@@ -123,18 +123,6 @@ char* tz_str[]={
     ,"Wellington"
 };
 
-/****************************************************************************/
-/* Truncates white-space chars off end of 'str'								*/
-/****************************************************************************/
-void truncsp(char *str)
-{
-	uint c;
-
-	c=strlen(str);
-	while(c && (uchar)str[c-1]<=SP) c--;
-	str[c]=0;
-}
-
 //---------------------------------------------------------------------------
 __fastcall TConfigWizard::TConfigWizard(TComponent* Owner)
     : TForm(Owner)
@@ -151,6 +139,7 @@ void __fastcall TConfigWizard::FormShow(TObject *Sender)
     SAFECOPY(scfg.ctrl_dir,MainForm->CtrlDirectory.c_str());
     scfg.size=sizeof(scfg);
     char error[256];
+	error[0]=0;
     if(!load_cfg(&scfg,NULL,FALSE,error)) {
         Application->MessageBox(error,"ERROR Loadin Configuration"
         	,MB_OK|MB_ICONEXCLAMATION);