Commit aec1b732 authored by Johnny Jazeix's avatar Johnny Jazeix

Fix a non-initialised variable bug with otf when some options are not given.

parent ea1a7bf0
......@@ -214,10 +214,9 @@ int ParserEventOTF::handler_enter (void *trace, uint64_t time, uint32_t func_id,
if(temp_function._file_source != 0) {
source_file_locator = ParserDefinitionOTF::get_fileline_by_id(temp_function._file_source);
source_file = ParserDefinitionOTF::get_filesource_by_id(source_file_locator._file_id);
}
source_file = ParserDefinitionOTF::get_filesource_by_id(source_file_locator._file_id);
if(source_file._name != "") {
opt["File name"] = new String(source_file._name);
opt["Line"] = new Integer(source_file_locator._line_number);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment