PSI sics-cvs-psi-2006
This commit is contained in:
6
help.c
6
help.c
@@ -21,14 +21,11 @@ static char *helpDirs = NULL;
|
||||
static char *defaultFile="master.txt";
|
||||
/*----------------------------------------------------------------------*/
|
||||
void KillHelp(void *pData){
|
||||
KillDummy(pData);
|
||||
if(helpDirs != NULL){
|
||||
free(helpDirs);
|
||||
helpDirs = NULL;
|
||||
}
|
||||
if(defaultFile != NULL){
|
||||
free(defaultFile);
|
||||
defaultFile = NULL;
|
||||
}
|
||||
}
|
||||
/*-----------------------------------------------------------------------*/
|
||||
static FILE *findHelpFile(char *name){
|
||||
@@ -149,4 +146,5 @@ int SicsHelp(SConnection *pCon,SicsInterp *pSics, void *pData,
|
||||
}
|
||||
printHelpFile(pCon,fd);
|
||||
fclose(fd);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user