aboutsummaryrefslogtreecommitdiff
path: root/src/hardcopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hardcopy.c')
-rw-r--r--src/hardcopy.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/hardcopy.c b/src/hardcopy.c
index f8a9a5b496..0d3715a8a7 100644
--- a/src/hardcopy.c
+++ b/src/hardcopy.c
@@ -441,8 +441,6 @@ static void prt_header(prt_settings_T *psettings, int pagenum, linenr_T lnum)
width += PRINT_NUMBER_WIDTH;
tbuf = alloc(width + IOSIZE);
- if (tbuf == NULL)
- return;
if (*p_header != NUL) {
linenr_T tmp_lnum, tmp_topline, tmp_botline;
@@ -2526,10 +2524,6 @@ int mch_print_begin(prt_settings_T *psettings)
alloc(sizeof(struct prt_ps_resource_S));
res_cmap = (struct prt_ps_resource_S *)
alloc(sizeof(struct prt_ps_resource_S));
- if (res_prolog == NULL || res_encoding == NULL
- || res_cidfont == NULL || res_cmap == NULL
- )
- goto theend;
/*
* PS DSC Header comments - no PS code!
@@ -2863,7 +2857,6 @@ int mch_print_begin(prt_settings_T *psettings)
/* Fail if any problems writing out to the PS file */
retval = !prt_file_error;
-theend:
vim_free(res_prolog);
vim_free(res_encoding);
vim_free(res_cidfont);