| 7205 | } |
| 7206 | |
| 7207 | static ZipfileEntry *zipfileNewEntry(const char *zPath){ |
| 7208 | ZipfileEntry *pNew; |
| 7209 | pNew = sqlite3_malloc(sizeof(ZipfileEntry)); |
| 7210 | if( pNew ){ |
| 7211 | memset(pNew, 0, sizeof(ZipfileEntry)); |
| 7212 | pNew->cds.zFile = sqlite3_mprintf("%s", zPath); |
| 7213 | if( pNew->cds.zFile==0 ){ |
| 7214 | sqlite3_free(pNew); |
| 7215 | pNew = 0; |
| 7216 | } |
| 7217 | } |
| 7218 | return pNew; |
| 7219 | } |
| 7220 | |
| 7221 | static int zipfileSerializeLFH(ZipfileEntry *pEntry, u8 *aBuf){ |
| 7222 | ZipfileCDS *pCds = &pEntry->cds; |