path.c: Remove invalid FUNC_ATTR_NONNULL_RET

References https://github.com/neovim/neovim/pull/6514#issuecomment-301235265
This commit is contained in:
Justin M. Keyes
2017-05-12 22:46:47 +02:00
parent ac47f8a506
commit 9e5d55e2b0

View File

@@ -435,7 +435,7 @@ bool add_pathsep(char *p)
/// @return [allocated] Copy of absolute path to `fname` or NULL when /// @return [allocated] Copy of absolute path to `fname` or NULL when
/// `fname` is NULL. /// `fname` is NULL.
char *FullName_save(const char *fname, bool force) char *FullName_save(const char *fname, bool force)
FUNC_ATTR_NONNULL_RET FUNC_ATTR_MALLOC FUNC_ATTR_MALLOC
{ {
if (fname == NULL) { if (fname == NULL) {
return NULL; return NULL;
@@ -453,7 +453,7 @@ char *FullName_save(const char *fname, bool force)
/// @param name An absolute or relative path. /// @param name An absolute or relative path.
/// @return The absolute path of `name`. /// @return The absolute path of `name`.
char_u *save_absolute_path(const char_u *name) char_u *save_absolute_path(const char_u *name)
FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_RET FUNC_ATTR_NONNULL_ALL FUNC_ATTR_MALLOC FUNC_ATTR_NONNULL_ALL
{ {
if (!path_is_absolute_path(name)) { if (!path_is_absolute_path(name)) {
return (char_u *)FullName_save((char *)name, true); return (char_u *)FullName_save((char *)name, true);