char *line;
FILE *fp;
- if(create_cmdtype_code() == false) {
+ if(pass == FIRST && create_cmdtype_code() == false) {
return false;
}
if((fp = fopen(file, "r")) == NULL) {
int i;
for(i = 0; i < cmdcodesize; i++) {
- np = (CMDCODETAB *) malloc(sizeof(*np));
+ np = malloc(sizeof(CMDCODETAB *));
if(np == NULL) {
setcerr(122, NULL); /* cannot create hash table */
return false;
int i;
for(i = 0; i < cmdcodesize; i++) {
- if((np = (CMDCODETAB *) malloc(sizeof(*np))) == NULL) {
+ if((np = malloc(sizeof(CMDCODETAB *))) == NULL) {
setcerr(122, NULL); /* cannot create hash table */
return false;
}