mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
Merge pull request #1582 from LBEaston/FixSegFault
Fix SegFault when entering Command(q:) or Search(q/) History
This commit is contained in:
commit
212cb13ca4
@ -479,7 +479,7 @@ char_u *vim_strbyte(const char_u *string, int c)
|
||||
* Does not handle multi-byte char for "c"!
|
||||
*/
|
||||
char_u *vim_strrchr(const char_u *string, int c)
|
||||
FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
|
||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
|
||||
{
|
||||
const char_u *retval = NULL;
|
||||
const char_u *p = string;
|
||||
|
Loading…
Reference in New Issue
Block a user