Skip to content

fix(ui): don't try to print null - #2211

Open
stolendata wants to merge 1 commit into
profanity-im:masterfrom
stolendata:stolendata-openbsd-nullptr-fix
Open

stolendata wants to merge 1 commit into
profanity-im:masterfrom
stolendata:stolendata-openbsd-nullptr-fix

Conversation

@stolendata

Copy link
Copy Markdown

g_strdup_printf() bottoms out to vfprintf(), which on OpenBSD throws a syslog notice when fed a null pointer, resulting in Profanity generating endless log spam on OpenBSD.

Sep 17 16:37:52 ohdruid profanity: vfprintf %s NULL in "%s/"
Sep 17 16:37:52 ohdruid last message repeated 2 times
Sep 17 19:09:13 ohdruid profanity: vfprintf %s NULL in "%s/"
Sep 17 19:17:51 ohdruid last message repeated 4 times
Sep 17 20:22:52 ohdruid profanity: vfprintf %s NULL in "%s/"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant