cppcheck null pointer dereference

This commit is contained in:
Philippe Teuwen committed 2021-09-04 00:54:59 +02:00
1 parent 8772edb6b8
commit b9e0b57cd8
1 file changed
+3 -1
+3 -1
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);
}
}
}