From: kristaps@bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: "Invalid standard argument should be a warning.
Date: Fri, 14 May 2010 09:26:40 -0600 (MDT) [thread overview]
Message-ID: <201005141526.o4EFQeAu014070@krisdoz.my.domain> (raw)
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
reply other threads:[~2010-05-14 15:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201005141526.o4EFQeAu014070@krisdoz.my.domain \
--to=kristaps@bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).