MCPcopy Create free account
hub / github.com/audacity/audacity / zipfileNewEntry

Function zipfileNewEntry

lib-src/sqlite/shell.c:7207–7219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7205}
7206
7207static 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
7221static int zipfileSerializeLFH(ZipfileEntry *pEntry, u8 *aBuf){
7222 ZipfileCDS *pCds = &pEntry->cds;

Callers 1

zipfileUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected