From 336aaeb7464199dd07a95dd01bcaf31acc6c7b1d Mon Sep 17 00:00:00 2001 From: Dave White Date: Sat, 4 Oct 2003 22:44:41 +0000 Subject: [PATCH] fixed segfault in make_translation --- src/config.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.cpp b/src/config.cpp index 47ff33ea7bd..a128c8613c2 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -90,6 +90,7 @@ void internal_preprocess_file(const std::string& fname, int depth, std::vector& res, std::vector* 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 defines_copy; - if(defines == NULL) + if(defines != NULL) defines_copy = *defines; std::vector res;