X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=src%2Fparser.re;h=0eae9439b88c4f6f4f5b8fda20eec78d437a672c;hb=a0019f0beb1e977c39b613c5e54cf994efa2e143;hp=831b218757c108e571c646ee05a17e4682b9514d;hpb=469fe3395cb9696e32bcd64639f22113d8fb2ec6;p=m6w6%2Fext-psi diff --git a/src/parser.re b/src/parser.re index 831b218..0eae943 100644 --- a/src/parser.re +++ b/src/parser.re @@ -30,8 +30,8 @@ PSI_Parser *PSI_ParserInit(PSI_Parser *P, const char *filename, psi_error_cb err } memset(P, 0, sizeof(*P)); + P->psi.file.fn = strdup(filename); P->fp = fp; - P->fn = strdup(filename); P->line = 1; P->error = error; P->flags = flags;