aboutsummaryrefslogtreecommitdiff
path: root/src/mark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mark.c b/src/mark.c
index f133c1b3fa..72336d1365 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -1417,8 +1417,7 @@ void copy_viminfo_marks(vir_T *virp, FILE *fp_out, int count, int eof, int flags
pos_T pos;
list_T *list = NULL;
- if ((name_buf = alloc(LSIZE)) == NULL)
- return;
+ name_buf = alloc(LSIZE);
*name_buf = NUL;
if (fp_out == NULL && (flags & (VIF_GET_OLDFILES | VIF_FORCEIT))) {