source@mandoc.bsd.lv
 help / color / Atom feed
* 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, back to index

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

source@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-source

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.source


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git