source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: "Invalid standard argument should be a warning.
@ 2010-05-14 15:26 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-05-14 15:26 UTC (permalink / raw)
  To: source

Log Message:
-----------
"Invalid standard argument should be a warning. Just leak it into the
output." (patch by Joerg Sonnenberger)

Modified Files:
--------------
    mdocml:
        mdoc_action.c
        mdoc_validate.c

Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.73
retrieving revision 1.74
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.73 -r1.74
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -1162,7 +1162,7 @@ post_st(POST_ARGS)
 
 	if (mdoc_a2st(mdoc->last->child->string))
 		return(1);
-	return(mdoc_nerr(mdoc, mdoc->last, EBADSTAND));
+	return(mdoc_nwarn(mdoc, mdoc->last, EBADSTAND));
 }
 
 
Index: mdoc_action.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_action.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -Lmdoc_action.c -Lmdoc_action.c -u -p -r1.55 -r1.56
--- mdoc_action.c
+++ mdoc_action.c
@@ -366,9 +366,10 @@ post_st(POST_ARGS)
 
 	assert(MDOC_TEXT == n->child->type);
 	p = mdoc_a2st(n->child->string);
-	assert(p);
-	free(n->child->string);
-	n->child->string = mandoc_strdup(p);
+	if (p != NULL) {
+		free(n->child->string);
+		n->child->string = mandoc_strdup(p);
+	}
 	return(1);
 }
 
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-14 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-14 15:26 mdocml: "Invalid standard argument should be a warning kristaps

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).