diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-03 15:56:00 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-02-03 15:56:00 +0000 |
commit | 66462d343df76307e0810df15379257777b153db (patch) | |
tree | be8b2979c34450f06d9962818c1b1b7b6715cdd7 /usr.sbin/ldapd | |
parent | f315e4a2252e2c4c5c3aa94eacaa7ed22149e55a (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