From 0e50c1438daedc8128c87f3473ac9f0b508ac7b8 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roff.c b/roff.c index 35e227d7..af7617a9 100644 --- a/roff.c +++ b/roff.c @@ -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