=================================================================== RCS file: /cvs/mandoc/tag.c,v retrieving revision 1.24 retrieving revision 1.25 diff -u -p -r1.24 -r1.25 --- mandoc/tag.c 2019/07/22 03:21:50 1.24 +++ mandoc/tag.c 2019/07/27 13:40:57 1.25 @@ -1,4 +1,4 @@ -/* $Id: tag.c,v 1.24 2019/07/22 03:21:50 schwarze Exp $ */ +/* $Id: tag.c,v 1.25 2019/07/27 13:40:57 schwarze Exp $ */ /* * Copyright (c) 2015, 2016, 2018, 2019 Ingo Schwarze * @@ -53,7 +53,7 @@ static struct tag_files tag_files; * but for simplicity, create it anyway. */ struct tag_files * -tag_init(void) +tag_init(char *tagname) { struct sigaction sa; int ofd; @@ -61,6 +61,7 @@ tag_init(void) ofd = -1; tag_files.tfd = -1; tag_files.tcpgid = -1; + tag_files.tagname = tagname; /* Clean up when dying from a signal. */ @@ -129,6 +130,7 @@ fail: *tag_files.tfn = '\0'; tag_files.ofd = -1; tag_files.tfd = -1; + tag_files.tagname = NULL; return NULL; }