Fix SegFault when getting full path for files

This commit is contained in:
LBEaston
2014-12-01 03:05:05 +11:00
parent 3e665efea4
commit 8f0e76fc50

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;