Closed Strahinja closed 6 months ago
We rely heavily on printing null strings with the assumption that they will be printed as "(null)". Is there no way to turn off those logs?
The messages are written by syslogd(8), which can only filter them according to log facility and level. Still, I find it shocking that passing NULL
s seems to be a practice rather than an oversight.
It is more of an historical artifact. Anyway I checked and it seems ub, so we may want to change that in the near future
@Strahinja if you find that there are some other nulls I forgot to handle feel free to reopen this 👍🏻
Issue description
Under OpenBSD, a bunch of lines like
are added to /var/log/messages. These appear whenever some program passes
NULL
to the*printf
family of functions in OpenBSD. It seems that those come from settings.c, where the struct members are passed toLOG_D
without checking if they areNULL
.Installation info
Dunst - A customizable and lightweight notification-daemon 1.9.2 (2023-04-20)
package
dwm
OpenBSD-release 7.4
Minimal dunstrc
```ini # Dunstrc here ```