aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fileio.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-15 22:12:31 +0200
committerGitHub <noreply@github.com>2017-04-15 22:12:31 +0200
commit5c805f4566384cbc76c88bfbffb8849498533529 (patch)
tree51ddf71326ebb6417edca00147216b9802b65dcb /src/nvim/os/fileio.c
parentc70ab1a2e2d78832e0246bd64c53c8b92912f0ef (diff)
parentd76a13bb65574f4811313ada6454f7d34cde2a2c (diff)
downloadrneovim-5c805f4566384cbc76c88bfbffb8849498533529.tar.gz
rneovim-5c805f4566384cbc76c88bfbffb8849498533529.tar.bz2
rneovim-5c805f4566384cbc76c88bfbffb8849498533529.zip
Merge #6528 from ZyX-I/revise-malloc-attr
Revise places where FUNC_ATTR_MALLOC is present Closes #6521
Diffstat (limited to 'src/nvim/os/fileio.c')
-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) {