Merge pull request #1582 from LBEaston/FixSegFault

Fix SegFault when entering Command(q:) or Search(q/) History
This commit is contained in:
Justin M. Keyes 2014-12-01 07:35:44 -05:00
commit 212cb13ca4

View File

@ -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;