* mandoc: prevent mandoc from segfaulting if /tmp is not writable; patch
@ 2019-07-06 20:05 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2019-07-06 20:05 UTC (permalink / raw)
To: source
Log Message:
-----------
prevent mandoc from segfaulting if /tmp is not writable;
patch from espie@
Modified Files:
--------------
mandoc:
main.c
Revision Data
-------------
Index: main.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/main.c,v
retrieving revision 1.327
retrieving revision 1.328
diff -Lmain.c -Lmain.c -u -p -r1.327 -r1.328
--- main.c
+++ main.c
@@ -504,7 +504,8 @@ main(int argc, char *argv[])
if (argc < 1) {
if (use_pager) {
tag_files = tag_init();
- tag_files->tagname = conf.output.tag;
+ if (tag_files != NULL)
+ tag_files->tagname = conf.output.tag;
}
thisarg = "<stdin>";
mandoc_msg_setinfilename(thisarg);
@@ -542,7 +543,8 @@ main(int argc, char *argv[])
if (use_pager) {
use_pager = 0;
tag_files = tag_init();
- tag_files->tagname = conf.output.tag;
+ if (tag_files != NULL)
+ tag_files->tagname = conf.output.tag;
}
mandoc_msg_setinfilename(thisarg);
--
To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-07-06 20:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-06 20:05 mandoc: prevent mandoc from segfaulting if /tmp is not writable; patch schwarze
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).