aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/memline.c')
-rw-r--r--src/nvim/memline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index d654749acd..62d1944c46 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -1367,7 +1367,7 @@ recover_names (
char_u *swapname = (char_u *)modname((char *)fname_res, ".swp", TRUE);
if (swapname != NULL) {
if (os_file_exists(swapname)) {
- files = (char_u **)xmalloc(sizeof(char_u *));
+ files = xmalloc(sizeof(char_u *));
files[0] = swapname;
swapname = NULL;
num_files = 1;