diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-03 23:24:16 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2011-01-03 23:24:16 +0000 |
commit | 0e50c1438daedc8128c87f3473ac9f0b508ac7b8 (patch) | |
tree | f739d4654fb065102cf7ea5acd0b6a8903d72b80 | |
parent | e1a791dfe938cc8826f20112330b85af7119064b (diff) | |
download | mandoc-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@.
-rw-r--r-- | roff.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); /* |