Explicitly set the *data member of struct ohash_info to NULL.
authorschwarze <schwarze@openbsd.org>
Fri, 2 Jan 2015 17:01:31 +0000 (17:01 +0000)
committerschwarze <schwarze@openbsd.org>
Fri, 2 Jan 2015 17:01:31 +0000 (17:01 +0000)
commitbd9c2e4840d14a7bb8b04c9c1239f9b9f662b066
tree25ad905c84efcf7fda23041c0267babca496e101
parent53687b848ae2d8fe2ec14899c4c6c64c58a34349
Explicitly set the *data member of struct ohash_info to NULL.
It is never dereferenced, but it gets copied around, which worries
static analysis tools and might also confuse human auditors.
FreeBSD Coverity CID 126129812612991261300, reported by
Pedro Giffuni and Ulrich Spörlein <pfg@ and uqs@ at FreeBSD>.
usr.bin/mandoc/mandocdb.c