--- psiconv/trunk/lib/psiconv/configuration.c 2004/02/04 15:28:56 200 +++ psiconv/trunk/lib/psiconv/configuration.c 2004/02/22 22:24:39 217 @@ -62,6 +62,11 @@ return result; } +void psiconv_config_free(psiconv_config config) +{ + free(config); +} + void psiconv_config_parse_statement(const char *filename, int linenr, const char *var, int value, @@ -70,7 +75,7 @@ int charnr; if (!(strcasecmp(var,"verbosity"))) { - if ((value >= 1) && (value <= 4)) + if ((value >= 1) && (value <= 5)) (*config)->verbosity = value; else psiconv_error(*config,0,0,"Configuration file %s, line %d: " @@ -110,7 +115,7 @@ psiconv_unicode_select_characterset(*config,value); else psiconv_error(*config,0,0,"Configuration file %s, line %d: " - "CharacterSet should be between 0 and 0", + "CharacterSet should be between 0 and 1", filename,linenr); } else if (!(strcasecmp(var,"unknownunicodechar"))) { if ((value >= 1) && (value < 0x10000)) @@ -354,4 +359,5 @@ psiconv_config_parse_file(filename,config); free(filename); } + free(path); }