mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
os/fileio: Remove FUNC_ATTR_MALLOC for file_open_new
fp contains pointer to rbuffer
This commit is contained in:
parent
c70ab1a2e2
commit
0dddd8a27c
@ -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.
|
/// @return [allocated] Opened file or NULL in case of error.
|
||||||
FileDescriptor *file_open_new(int *const error, const char *const fname,
|
FileDescriptor *file_open_new(int *const error, const char *const fname,
|
||||||
const int flags, const int mode)
|
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));
|
FileDescriptor *const fp = xmalloc(sizeof(*fp));
|
||||||
if ((*error = file_open(fp, fname, flags, mode)) != 0) {
|
if ((*error = file_open(fp, fname, flags, mode)) != 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user