"WINDOW_TYPE" ,
"ARG_TYPE" ,
"LABEL" ,
- NULL ,
+ '\0' ,
};
/* Max Number of fields in Action Keyword Table */
"MAP_ACTION" ,
"TYPE" ,
"LABEL" ,
- NULL ,
+ '\0' ,
};
/* Max Number of fields in Filetype Keyword Table */
ppFiletypeData[nfiletypes] = 0;
/* return number of filetypes */
*nftypes = nfiletypes+1;
+ free(execstr);
return ppFiletypeData;
}
if (!args[1])
{
int szArgs1 = strlen(s) + 1;
- if(s)
- args[1] = (char *)malloc (szArgs1);
+ args[1] = (char *)malloc (szArgs1);
if (!args[1])
{
if(args[0])
continue;
}
}
- else if (s1 && *s1)
+ else if (*s1)
{
strcat(exec_args[0],s1);
if(argbuf) { free(argbuf); argbuf = NULL; }
pFtD->fsFlags|=CA_FT_CNTLONG;
else if ( !strcmp(buf,"short") )
pFtD->fsFlags|=CA_FT_CNTSHORT;
- else
+ else {
+ free(cts);
return (-1);
+ }
}
while( *tmp && isspace(*tmp) ) tmp++;
s2=tmp;