diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-09-21 14:37:01 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-09-21 14:37:01 +0200 |
| commit | 4c8aba2add074c4a8101156037e9ca7051bc4baf (patch) | |
| tree | d65e64b8d3e95c54aede0af53e375129612cb2d5 /src | |
| parent | 113e0976e232ac2110d50405f8629787f3f53cfc (diff) | |
Add assertion
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/j2k.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/openjp2/j2k.c b/src/lib/openjp2/j2k.c index e47abdbd..75d4f0ce 100644 --- a/src/lib/openjp2/j2k.c +++ b/src/lib/openjp2/j2k.c @@ -11139,8 +11139,9 @@ OPJ_BOOL opj_j2k_encode(opj_j2k_t * p_j2k, l_max_tile_size = l_current_tile_size; } if (l_current_data == NULL) { - /* Shoul not happen in practice, but will avoid Coverity to */ + /* Should not happen in practice, but will avoid Coverity to */ /* complain about a null pointer dereference */ + assert(0); return OPJ_FALSE; } |
