Nullptr checks

FossilOrigin-Name: 2407ab3be7e0dc0d94290b54c424fc3a9a5f945784dda05fb9f6015c63589766
This commit is contained in:
nekobit 2022-05-21 19:46:40 +00:00
parent 809194b552
commit 711a34dcf8
2 changed files with 3 additions and 0 deletions

View file

@ -29,6 +29,7 @@
char* emojify(char* content, struct mstdnt_emoji* emos, size_t emos_len)
{
if (!(content && emos && emos_len)) return NULL;
size_t sc_len;
char* oldres = NULL;
char* res = content;

View file

@ -396,6 +396,8 @@ char* reformat_status(struct session* ssn,
char* greentextify(char* content)
{
if (!content) return NULL;
const char* error;
int erroffset;
int rc;