/* if processing subtopics, start processing at the top */
if ( processSubTopics )
{
- char * name = NULL;
int offset;
/* get the top topic of the volume */
ret = _DtHelpCeGetTopTopicId(state->volHandle, &state->currentLocId);
if (ret != True) state->currentLocId = strdup("_HOMETOPIC");
- if(name) free(name);
}
else
{ /* otherwise, process only where needed */
char * buf;
char * start;
char * next;
- char * pgbrkFile;
+ char * pgbrkFile = NULL;
char * partFiles[NUMPARTS];
Boolean validFile = False;
unlink(partFiles[i]);
free(partFiles[i]);
}
- unlink(pgbrkFile);
+
+ if(pgbrkFile) {
+ unlink(pgbrkFile);
+ }
/* NOTE: should free Toc here if interested in no leaks */