summaryrefslogtreecommitdiffstats
path: root/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2011-01-03 23:24:16 +0000
committerIngo Schwarze <schwarze@openbsd.org>2011-01-03 23:24:16 +0000
commit0e50c1438daedc8128c87f3473ac9f0b508ac7b8 (patch)
treef739d4654fb065102cf7ea5acd0b6a8903d72b80 /roff.c
parente1a791dfe938cc8826f20112330b85af7119064b (diff)
downloadmandoc-0e50c1438daedc8128c87f3473ac9f0b508ac7b8.tar.gz
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@.
Diffstat (limited to 'roff.c')
-rw-r--r--roff.c2
1 files changed, 1 insertions, 1 deletions
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);
/*