X-Git-Url: http://www.wagner.pp.ru/gitweb/?p=oss%2Fcatdoc.git;a=blobdiff_plain;f=src%2Ffileutil.c;fp=src%2Ffileutil.c;h=86139ecdb833e332679d5ec03078b7198319713c;hp=ce616c2ea112d170894a7d95dbf7679d00437e1c;hb=7de410970cd2916482178d730b64aef013b0567a;hpb=b89ceec5c7a586c1ad3e4758c4d2fdd160117d27 diff --git a/src/fileutil.c b/src/fileutil.c index ce616c2..86139ec 100644 --- a/src/fileutil.c +++ b/src/fileutil.c @@ -180,14 +180,16 @@ void list_charsets(void) { char *q; char path_buf[PATH_BUF_SIZE]; char dir_sep[2]={DIR_SEP,0}; + char **ptr; #ifdef __MSDOS__ struct ffblk ffblock; int res,col; #else glob_t glob_buf; int count,glob_flags=GLOB_ERR; + + memset(&glob_buf,0,sizeof(glob_t)); #endif - char **ptr; for (p=charset_path;p;p=(q?(q+1):NULL)) { q=strchr(p,LIST_SEP); if (q) {