--- psiconv/trunk/program/extra/empty.c 2003/11/23 21:47:24 167 +++ psiconv/trunk/program/extra/empty.c 2003/11/25 17:57:05 168 @@ -20,6 +20,7 @@ #include #include +#include void help(void) { @@ -34,6 +35,8 @@ psiconv_buffer buf; psiconv_file psionfile; psiconv_file_type_t type=0; + psiconv_config config; + if (argc < 3) help(); @@ -46,9 +49,13 @@ help(); } + if (!(config = psiconv_config_read(NULL))) { + fprintf(stderr,"Can't get config\n"); + exit(1); + } psionfile = psiconv_empty_file(type); - if (psiconv_write(&buf,psionfile)) { + if (psiconv_write(config,&buf,psionfile)) { fprintf(stderr,"Generate error\n"); exit(1); }