fixed segfault in make_translation

This commit is contained in:
Dave White 2003-10-04 22:44:41 +00:00
parent 8a8b84b4da
commit 336aaeb746

View File

@ -90,6 +90,7 @@ void internal_preprocess_file(const std::string& fname,
int depth, std::vector<char>& res,
std::vector<line_source>* lines_src, int& line)
{
log_scope("internal preprocess");
//if it's a directory, we process all files in the directory
//that end in .cfg
if(is_directory(fname)) {
@ -275,7 +276,7 @@ std::string preprocess_file(const std::string& fname,
{
log_scope("preprocessing file...");
std::map<std::string,std::string> defines_copy;
if(defines == NULL)
if(defines != NULL)
defines_copy = *defines;
std::vector<char> res;