summaryrefslogtreecommitdiffstats
path: root/action.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:48:29 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-21 09:48:29 +0000
commit6c05be5aa98b2b560ff62e43d1ada7a223914224 (patch)
tree3ccfdf2cc8d06483a05e08cb69a11865ec7ae75c /action.c
parent3c440a5309fa7eba1fc440c3f96f8d0d217b1514 (diff)
downloadmandoc-6c05be5aa98b2b560ff62e43d1ada7a223914224.tar.gz
Lint fixes.
Diffstat (limited to 'action.c')
-rw-r--r--action.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/action.c b/action.c
index 73cecd0d..65567d51 100644
--- a/action.c
+++ b/action.c
@@ -405,7 +405,8 @@ post_dt(POST_ARGS)
* arch = NULL
*/
- if ((cp = mdoc_a2msec(n->string))) {
+ cp = mdoc_a2msec(n->string);
+ if (cp) {
m->meta.vol = xstrdup(cp);
errno = 0;
lval = strtol(n->string, &ep, 10);
@@ -424,7 +425,8 @@ post_dt(POST_ARGS)
* VOL
*/
- if ((cp = mdoc_a2vol(n->string))) {
+ cp = mdoc_a2vol(n->string);
+ if (cp) {
free(m->meta.vol);
m->meta.vol = xstrdup(cp);
n = n->next;
@@ -489,7 +491,8 @@ post_bl_tagwidth(struct mdoc *m)
* width if a macro.
*/
- if ((n = n->head->child)) {
+ n = n->head->child;
+ if (n) {
if (MDOC_TEXT != n->type) {
if (0 == (sz = (int)mdoc_macro2len(n->tok)))
sz = -1;