summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'devices/gdevmgr.c')
-rw-r--r--devices/gdevmgr.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/devices/gdevmgr.c b/devices/gdevmgr.c
index 79c299d5..d0b81b11 100644
--- a/devices/gdevmgr.c
+++ b/devices/gdevmgr.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001-2019 Artifex Software, Inc.
+/* Copyright (C) 2001-2020 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
@@ -218,10 +218,11 @@ mgrN_print_page(gx_device_printer *pdev, gp_file *pstream)
}
}
- if ( bdev->mgr_depth != 8 )
+ if ( bdev->mgr_depth != 8 ) {
data = (byte *)gs_malloc(pdev->memory, mgr_line_size, 1, "mgrN_print_page");
- if (data == NULL)
- return_error(gs_error_VMerror);
+ if (data == NULL)
+ return_error(gs_error_VMerror);
+ }
while ( !(code = mgr_next_row(&cur)) )
{