From 0bca0ed29c146972c0bb416f86619a5a280c08cb Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 3 Jan 2011 23:24:16 +0000 Subject: Calling a macro with fewer arguments than it is defined with is OK; the remaining ones default to the empty string, not to NULL. Regression reported and fix tested by kristaps@. --- roff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'roff.c') diff --git a/roff.c b/roff.c index 64a8f629..5053bef5 100644 --- a/roff.c +++ b/roff.c @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.119 2011/01/03 22:42:37 schwarze Exp $ */ +/* $Id: roff.c,v 1.120 2011/01/03 23:24:16 schwarze Exp $ */ /* * Copyright (c) 2010, 2011 Kristaps Dzonsons * Copyright (c) 2010, 2011 Ingo Schwarze @@ -1209,7 +1209,7 @@ roff_userdef(ROFF_ARGS) */ cp = *bufp + pos; for (i = 0; i < 9; i++) - arg[i] = '\0' == *cp ? NULL : + arg[i] = '\0' == *cp ? "" : mandoc_getarg(&cp, r->msg, r->data, ln, &pos); /* -- cgit v1.2.3