mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 16:44:49 +01:00
updated for output_file rename
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@5222 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
ae090a01b3
commit
887c4d6eae
@ -720,12 +720,12 @@ int IPhreeqc::module_open_handler(const int type, const char *file_name)
|
||||
switch (type)
|
||||
{
|
||||
case Phreeqc::OUTPUT_MESSAGE:
|
||||
if (this->PhreeqcPtr->output != NULL)
|
||||
if (this->PhreeqcPtr->output_file != NULL)
|
||||
{
|
||||
::fclose(this->PhreeqcPtr->output);
|
||||
this->PhreeqcPtr->output = NULL;
|
||||
::fclose(this->PhreeqcPtr->output_file);
|
||||
this->PhreeqcPtr->output_file = NULL;
|
||||
}
|
||||
if ( (this->PhreeqcPtr->output = ::fopen(file_name, "w")) == NULL)
|
||||
if ( (this->PhreeqcPtr->output_file = ::fopen(file_name, "w")) == NULL)
|
||||
{
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user