escape: add missing non-NULL parameter assertions

This commit is contained in:
msizanoen1 2023-03-02 18:37:02 +07:00
parent 582843ee37
commit 0b82a6fa5d

View file

@ -473,6 +473,8 @@ char* octescape(const char *s, size_t len) {
static char* strcpy_backslash_escaped(char *t, const char *s, const char *bad) {
assert(bad);
assert(t);
assert(s);
while (*s) {
int l = utf8_encoded_valid_unichar(s, SIZE_MAX);