aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-15 19:13:43 +0300
committerZyX <kp-pav@yandex.ru>2017-04-15 19:13:43 +0300
commit0dddd8a27caac1060dedbe55b285e3564e81e995 (patch)
treec0053ba5686529171e338707b32f8c00be2c05bf /src
parentc70ab1a2e2d78832e0246bd64c53c8b92912f0ef (diff)
downloadrneovim-0dddd8a27caac1060dedbe55b285e3564e81e995.tar.gz
rneovim-0dddd8a27caac1060dedbe55b285e3564e81e995.tar.bz2
rneovim-0dddd8a27caac1060dedbe55b285e3564e81e995.zip
os/fileio: Remove FUNC_ATTR_MALLOC for file_open_new
fp contains pointer to rbuffer
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/fileio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/fileio.c b/src/nvim/os/fileio.c
index 4b7b53fc7f..3c47c66196 100644
--- a/src/nvim/os/fileio.c
+++ b/src/nvim/os/fileio.c
@@ -100,7 +100,7 @@ int file_open(FileDescriptor *const ret_fp, const char *const fname,
/// @return [allocated] Opened file or NULL in case of error.
FileDescriptor *file_open_new(int *const error, const char *const fname,
const int flags, const int mode)
- FUNC_ATTR_NONNULL_ALL FUNC_ATTR_MALLOC FUNC_ATTR_WARN_UNUSED_RESULT
+ FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
{
FileDescriptor *const fp = xmalloc(sizeof(*fp));
if ((*error = file_open(fp, fname, flags, mode)) != 0) {