cppcheck null pointer dereference
This commit is contained in:
1 parent
8772edb6b8
commit
b9e0b57cd8
1 file changed
+3
-1
+3
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user