From ba7921a06ba00e108e0f5436948e665c1f21ee64 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Fri, 12 Jun 2009 12:52:50 +0000 Subject: Lint fixes (no effect). Versioning up. --- Makefile | 4 ++-- mdoc.c | 6 ++++-- mdoc_action.c | 3 ++- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f085166b..0ae00ff3 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/mdoc.c b/mdoc.c index 6c84ff24..74c6b953 100644 --- a/mdoc.c +++ b/mdoc.c @@ -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; -- cgit