diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-12-08 23:36:20 +0100 |
commit | 2af3baffb58f22ddf3ac5944d2677b981763e03d (patch) | |
tree | 70d1dfc4ea490b053072b2ea68ad250b8a96972e /fitz/filt_basic.c | |
parent | 62ff8552500694c96b998d2aac6fbc47ab2d9395 (diff) | |
download | mupdf-2af3baffb58f22ddf3ac5944d2677b981763e03d.tar.xz |
Stylistic changes when testing pointer values for NULL.
Also: use 'cannot' instead of 'failed to' in error messages.
Diffstat (limited to 'fitz/filt_basic.c')
-rw-r--r-- | fitz/filt_basic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fitz/filt_basic.c b/fitz/filt_basic.c index 1ab70f7f..3d211645 100644 --- a/fitz/filt_basic.c +++ b/fitz/filt_basic.c @@ -40,7 +40,7 @@ fz_open_null(fz_stream *chain, int len) { struct null_filter *state; - assert(chain != NULL); + assert(chain); state = fz_malloc(chain->ctx, sizeof(struct null_filter)); state->chain = chain; state->remain = len; @@ -282,7 +282,7 @@ fz_open_a85d(fz_stream *chain) { fz_a85d *state; - assert(chain != NULL); + assert(chain); state = fz_malloc(chain->ctx, sizeof(fz_a85d)); state->chain = chain; state->rp = state->bp; @@ -370,7 +370,7 @@ fz_open_rld(fz_stream *chain) { fz_rld *state; - assert(chain != NULL); + assert(chain); state = fz_malloc(chain->ctx, sizeof(fz_rld)); state->chain = chain; state->run = 0; @@ -496,7 +496,7 @@ fz_open_aesd(fz_stream *chain, unsigned char *key, unsigned keylen) { fz_aesd *state; - assert(chain != NULL); + assert(chain); state = fz_malloc(chain->ctx, sizeof(fz_aesd)); state->chain = chain; aes_setkey_dec(&state->aes, key, keylen * 8); |