| 1317 | static char *ForcedTmpBase = NULL; |
| 1318 | |
| 1319 | void 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() |