diff options
author | Loic Dachary <loic@dachary.org> | 2014-03-06 17:48:12 +0100 |
---|---|---|
committer | Loic Dachary <loic@dachary.org> | 2014-03-28 17:12:40 +0100 |
commit | b1924fd6f64a95955ced8ecd8b6dcc05e7b9b9da (patch) | |
tree | 17822f598967517bd46c1fb542d01a0a1a29d909 | |
parent | b40e645fd703bc32d36f75f967d135f6200d0271 (diff) | |
download | gf-complete-b1924fd6f64a95955ced8ecd8b6dcc05e7b9b9da.tar.gz |
do not use gf_internal_t when it is null
Signed-off-by: Loic Dachary <loic@dachary.org>
(cherry picked from commit cc45e190265171dca5b7a8317906a7ddd730b082)
-rw-r--r-- | src/gf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |