summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-03 23:19:34 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2011-01-03 23:19:34 +0000
commit6ddc11e3560b59e0be8c0f3faf575383ef0c85f6 (patch)
treeaacec6f9e7bdcee483dbf071bb87f70a10482211 /usr.bin
parentd0a8ff19bd1d125601be3d80d88506d34f761b9c (diff)
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 'usr.bin')
-rw-r--r--usr.bin/mandoc/roff.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index 49dd9fb0047..d25041cb8df 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.25 2011/01/03 22:27:21 schwarze Exp $ */
+/* $Id: roff.c,v 1.26 2011/01/03 23:19:33 schwarze Exp $ */
/*
* Copyright (c) 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -1132,7 +1132,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);
/*