chiark / gitweb /
Reran autoconf.
[userv.git] / parser.c
index ecfe32239aac292c8c4e313997c5f8320db397fc..0965f41868ff0252a56e1071cd5fd45ed509e808 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -173,6 +173,7 @@ static int dequote(char *inplace) {
     }
   }
   assert(*p); assert(!*++p);
+  *q++= 0;
   return tokv_quotedstring;
 }
 
@@ -1298,9 +1299,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++;