Eliminate 'possible integer underflow' code defect (cord-de)
authorIvan Maidanski <ivmai@mail.ru>
Thu, 27 Oct 2016 21:58:21 +0000 (00:58 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 28 Oct 2016 07:01:28 +0000 (10:01 +0300)
commit311a0fceb7a6e81da99547f74d520f0ebf43c5ff
tree8e5b9019e5674935229e9a6a358d06c374da5f7d
parent0f23ec4e241e5dec0958c6c62ade597a9bb98a75
Eliminate 'possible integer underflow' code defect (cord-de)

* cord/tests/de.c (generic_init): Replace initial==CORD_EMPTY check
with 0==len where len is CORD_len(initial) (to outline that len-1
cannot cause underflow).
cord/tests/de.c