stream handling: better debug error assertion

This commit is contained in:
Rainer Gerhards 2016-10-05 18:01:40 +02:00
parent 7fc4c57685
commit 5088a1d3bf

View File

@ -493,9 +493,10 @@ strmNextFile(strm_t *pThis)
{
DEFiRet;
ASSERT(pThis != NULL);
ASSERT(pThis->iMaxFiles != 0);
ASSERT(pThis->fd != -1);
assert(pThis != NULL);
assert(pThis->sType == STREAMTYPE_FILE_CIRCULAR);
assert(pThis->iMaxFiles != 0);
assert(pThis->fd != -1);
CHKiRet(strmCloseFile(pThis));