diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:52:50 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-06-12 12:52:50 +0000 |
commit | ba7921a06ba00e108e0f5436948e665c1f21ee64 (patch) | |
tree | 171052389d7ec5ff0eb5699da30e2499885426a2 | |
parent | 725e38dea0823960cd95c9477c6434e08d2e787f (diff) | |
download | mandoc-ba7921a06ba00e108e0f5436948e665c1f21ee64.tar.gz |
Lint fixes (no effect).
Versioning up.
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | mdoc.c | 6 | ||||
-rw-r--r-- | mdoc_action.c | 3 |
3 files changed, 8 insertions, 5 deletions
@@ -9,8 +9,8 @@ INSTALL_DATA = install -m 0444 INSTALL_LIB = install -m 0644 INSTALL_MAN = $(INSTALL_DATA) -VERSION = 1.7.14 -VDATE = 11 June 2009 +VERSION = 1.7.15 +VDATE = 12 June 2009 VFLAGS = -DVERSION=\"$(VERSION)\" CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g @@ -480,7 +480,8 @@ mdoc_block_alloc(struct mdoc *mdoc, int line, int pos, p = node_alloc(mdoc, line, pos, tok, MDOC_BLOCK); if (NULL == p) return(0); - if ((p->args = args)) + p->args = args; + if (p->args) (args->refcnt)++; return(node_append(mdoc, p)); } @@ -495,7 +496,8 @@ mdoc_elem_alloc(struct mdoc *mdoc, int line, int pos, p = node_alloc(mdoc, line, pos, tok, MDOC_ELEM); if (NULL == p) return(0); - if ((p->args = args)) + p->args = args; + if (p->args) (args->refcnt)++; return(node_append(mdoc, p)); } diff --git a/mdoc_action.c b/mdoc_action.c index 96945c4f..660f1fff 100644 --- a/mdoc_action.c +++ b/mdoc_action.c @@ -538,7 +538,8 @@ post_bl_tagwidth(struct mdoc *m) * width if a macro. */ - if ((n = m->last->body->child)) { + n = m->last->body->child; + if (n) { assert(MDOC_BLOCK == n->type); assert(MDOC_It == n->tok); n = n->head->child; |