summaryrefslogtreecommitdiff
path: root/usr.sbin/ldapd
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-02-03 15:56:00 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-02-03 15:56:00 +0000
commit66462d343df76307e0810df15379257777b153db (patch)
treebe8b2979c34450f06d9962818c1b1b7b6715cdd7 /usr.sbin/ldapd
parentf315e4a2252e2c4c5c3aa94eacaa7ed22149e55a (diff)
Fix tput when compiled with clang-15 -O2
For some reason clang-15 doesn't like passing the uninitialized array of pointers nargv[] to the vararg function tparm(). With -O2 it optimizes the for loop preceding the tparm() call strangely, with the result that the argv[i] == NULL error is hit in most real-world usage. This broke naddy's fancy shell prompt among other things. Initialize nargv[] to appease the insatiable undefined behavior exploiter. ok jca millert
Diffstat (limited to 'usr.sbin/ldapd')
0 files changed, 0 insertions, 0 deletions