summaryrefslogtreecommitdiffstats
path: root/soelim.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2019-06-27 15:07:30 +0000
committerIngo Schwarze <schwarze@openbsd.org>2019-06-27 15:07:30 +0000
commit112dc1f135b5e960bba6188f8845382c5551ed8b (patch)
tree0d6517a24d9a5b6cefa482fcb772a78c037b07ce /soelim.c
parent1bd25a143cc0c80e32fa939ecbe1d27ea3e4a03d (diff)
downloadmandoc-112dc1f135b5e960bba6188f8845382c5551ed8b.tar.gz
Fix mandoc_normdate() and the way it is used.
In the past, it could return NULL but the calling code wasn't prepared to handle that. Make sure it always returns an allocated string. While here, simplify the code by handling the "quick" attribute inside mandoc_normdate() rather than at multiple callsites. Triggered by deraadt@ pointing out that snprintf(3) error handling was incomplete in time2a().
Diffstat (limited to 'soelim.c')
0 files changed, 0 insertions, 0 deletions