summaryrefslogtreecommitdiff
path: root/src/gf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gf.c')
-rw-r--r--src/gf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gf.c b/src/gf.c
index 5a71ad6..701739b 100644
--- a/src/gf.c
+++ b/src/gf.c
@@ -795,7 +795,7 @@ void gf_set_region_data(gf_region_data *rd,
if (align == -1) { /* JSP: This is cauchy. Error check bytes, then set up the pointers
so that there are no alignment regions. */
- if (bytes % h->w != 0) {
+ if (h != NULL && bytes % h->w != 0) {
fprintf(stderr, "Error in region multiply operation.\n");
fprintf(stderr, "The size must be a multiple of %d bytes.\n", h->w);
exit(1);