Fix inpfname being used before initialized
This commit is contained in:
parent
036fd4f4c8
commit
01609471e1
@ -477,6 +477,9 @@ int pc_compile(int argc, char *argv[])
|
|||||||
if (litq==NULL)
|
if (litq==NULL)
|
||||||
error(103); /* insufficient memory */
|
error(103); /* insufficient memory */
|
||||||
|
|
||||||
|
/* inptfname may be used in error(), fill it with zeros */
|
||||||
|
memset(inpfname,0,_MAX_PATH);
|
||||||
|
|
||||||
setopt(argc,argv,outfname,errfname,incfname,reportname,codepage);
|
setopt(argc,argv,outfname,errfname,incfname,reportname,codepage);
|
||||||
strcpy(binfname,outfname);
|
strcpy(binfname,outfname);
|
||||||
ptr=get_extension(binfname);
|
ptr=get_extension(binfname);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user