profanity-im / profanity

Ncurses based XMPP client
https://profanity-im.github.io/
Other
1.33k stars 187 forks source link

Improve handling of NULL pointers fetched from DB #1916

Closed H3rnand3zzz closed 1 year ago

H3rnand3zzz commented 1 year ago

1915 unsuccessfully tried to fix strdup(message) when message is NULL, since it lead to a chain reaction that can be ungracefully fixed like this: https://github.com/profanity-im/profanity/commit/c1c2113a3a2c66db160757d7169ee18610b3c29a or instead we could use strdup("") to substitute an empty message.

H3rnand3zzz commented 1 year ago

Low quality description and commit message without any references. You know better than this.

Addressed.