mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Test for NULL before assigning string
This commit is contained in:
parent
85fab1e749
commit
94efe9b14c
@ -62,7 +62,10 @@ void RifEclipseSummaryTools::findSummaryFiles(const std::string& inputFile,
|
||||
stringlist_type* summary_file_list = stringlist_alloc_new();
|
||||
|
||||
ecl_util_alloc_summary_files(path.data(), base.data(), extention.data(), &myHeaderFile, summary_file_list);
|
||||
(*headerFile) = myHeaderFile;
|
||||
if (myHeaderFile != NULL)
|
||||
{
|
||||
*headerFile = myHeaderFile;
|
||||
}
|
||||
util_safe_free(myHeaderFile);
|
||||
|
||||
if(stringlist_get_size(summary_file_list) > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user