cppcheck null pointer dereference

This commit is contained in:
Philippe Teuwen 2021-09-04 00:53:23 +02:00
commit b9e0b57cd8

View file

@ -555,7 +555,9 @@ void memcpy_filter_emoji(void *dest, const void *src, size_t n, emojiMode_t mode
}
}
}
memcpy(rdest + si, current_token, current_token_length);
if (current_token_length > 0) {
memcpy(rdest + si, current_token, current_token_length);
}
}
}