diff options
author | Markus Armbruster <armbru@redhat.com> | 2014-05-23 13:24:36 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-05-24 00:46:11 +0400 |
commit | f33a984d512dbcb6762b002a65de4ea748e31d4a (patch) | |
tree | e9428006f57ac12d3b53918454469ec88beaa090 /libcacard | |
parent | fa5912a17b51b807c4ec78a4aa914891c7770781 (diff) |
libcacard/vreader: Tighten assertion to clarify intent
Bonus: hushes up Coverity.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard')
-rw-r--r-- | libcacard/vreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcacard/vreader.c b/libcacard/vreader.c index 93b01c8601..f1288d9986 100644 --- a/libcacard/vreader.c +++ b/libcacard/vreader.c @@ -283,7 +283,7 @@ vreader_xfr_bytes(VReader *reader, response->b_sw2, response->b_len, response->b_total_len); } } - assert(card_status == VCARD_DONE); + assert(card_status == VCARD_DONE && response); int size = MIN(*receive_buf_len, response->b_total_len); memcpy(receive_buf, response->b_data, size); *receive_buf_len = size; |