X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=parser.c;h=fbf0872a1ec2db564178d2905dc1fb73675b5e4d;hp=ecfe32239aac292c8c4e313997c5f8320db397fc;hb=99ff52b783574342c2859359aa6c39229bd5dcda;hpb=1a01177d758ce6fe2ad86a7f223054d806787803 diff --git a/parser.c b/parser.c index ecfe322..fbf0872 100644 --- a/parser.c +++ b/parser.c @@ -1298,9 +1298,9 @@ static int parse_file(const char *string, int *didexist) { if (didexist) *didexist= 1; - filename= xstrsave(file); ybuf= yy_create_buffer(file,YY_BUF_SIZE); if (!ybuf) syscallerror("unable to create flex buffer for file"); + filename= xstrsave(string); parser_push(&usestate,filename,&newstab,ybuf,0); fileparselevel++;