** Reset a cursor back to the state it was in when first returned ** by zipfileOpen(). */
| 6320 | ** by zipfileOpen(). |
| 6321 | */ |
| 6322 | static void zipfileResetCursor(ZipfileCsr *pCsr){ |
| 6323 | ZipfileEntry *p; |
| 6324 | ZipfileEntry *pNext; |
| 6325 | |
| 6326 | pCsr->bEof = 0; |
| 6327 | if( pCsr->pFile ){ |
| 6328 | fclose(pCsr->pFile); |
| 6329 | pCsr->pFile = 0; |
| 6330 | zipfileEntryFree(pCsr->pCurrent); |
| 6331 | pCsr->pCurrent = 0; |
| 6332 | } |
| 6333 | |
| 6334 | for(p=pCsr->pFreeEntry; p; p=pNext){ |
| 6335 | pNext = p->pNext; |
| 6336 | zipfileEntryFree(p); |
| 6337 | } |
| 6338 | } |
| 6339 | |
| 6340 | /* |
| 6341 | ** Destructor for an ZipfileCsr. |
no test coverage detected