aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memory.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2021-09-24 05:13:55 -0700
committerGitHub <noreply@github.com>2021-09-24 05:13:55 -0700
commitbc570b00641386f6c60b24bc2207661b7551ca10 (patch)
tree9bce911896cb8b9f87f61b2a5e4bb704f3204b99 /src/nvim/memory.c
parent55d1e630b4d66ecb774824c9839e7f5821d23341 (diff)
parent03ed72642ddfe6a603673efdc0998a154e581b88 (diff)
downloadrneovim-bc570b00641386f6c60b24bc2207661b7551ca10.tar.gz
rneovim-bc570b00641386f6c60b24bc2207661b7551ca10.tar.bz2
rneovim-bc570b00641386f6c60b24bc2207661b7551ca10.zip
Merge #15774 fix(pvs): fix warnings, script
Diffstat (limited to 'src/nvim/memory.c')
-rw-r--r--src/nvim/memory.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index cc9c047fa0..0f5f4c1e40 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -170,6 +170,8 @@ void *xrealloc(void *ptr, size_t size)
/// xmalloc() wrapper that allocates size + 1 bytes and zeroes the last byte
///
+/// Commonly used to allocate strings, e.g. `char *s = xmallocz(len)`.
+///
/// @see {xmalloc}
/// @param size
/// @return pointer to allocated space. Never NULL