Nullptr checks
FossilOrigin-Name: 2407ab3be7e0dc0d94290b54c424fc3a9a5f945784dda05fb9f6015c63589766
This commit is contained in:
parent
809194b552
commit
711a34dcf8
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue