The correct value to set in parsed_output_log to disable the parsed
log is "no" but if the user enters "none" as is usual with the other
parameters, parsed_output_log is set to an empty string which is not
equivalent to "no". The creation of the parsed log would then proceed
and fail because the path is invalid.
strcpy(IndexSortOrder,"D");
ShowSargInfo=true;
ShowSargLogo=true;
- strcpy(ParsedOutputLog,"no");
+ ParsedOutputLog[0]='\0';
strcpy(ParsedOutputLogCompress,"/bin/gzip -f");
DisplayedValues=DISPLAY_ABBREV;
strcpy(HeaderFontSize,"9px");
}
}
- if(!fp_log && strcmp(ParsedOutputLog, "no") != 0 && ilf!=ILF_Sarg) {
+ if(!fp_log && ParsedOutputLog[0] && ilf!=ILF_Sarg) {
if(access(ParsedOutputLog,R_OK) != 0) {
my_mkdir(ParsedOutputLog);
}