MCPcopy Index your code
hub / github.com/MapServer/MapServer / msForceTmpFileBase

Function msForceTmpFileBase

maputil.c:1319–1340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1317static char *ForcedTmpBase = NULL;
1318
1319void msForceTmpFileBase( const char *new_base )
1320{
1321/* -------------------------------------------------------------------- */
1322/* Clear previous setting, if any. */
1323/* -------------------------------------------------------------------- */
1324 if( ForcedTmpBase != NULL )
1325 {
1326 free( ForcedTmpBase );
1327 ForcedTmpBase = NULL;
1328 }
1329
1330 tmpCount = -1;
1331
1332 if( new_base == NULL )
1333 return;
1334
1335/* -------------------------------------------------------------------- */
1336/* Record new base. */
1337/* -------------------------------------------------------------------- */
1338 ForcedTmpBase = msStrdup( new_base );
1339 tmpCount = 0;
1340}
1341
1342/**********************************************************************
1343 * msTmpFile()

Callers 1

msCleanupFunction · 0.85

Calls 1

msStrdupFunction · 0.85

Tested by

no test coverage detected