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
94b22908e0
commit
9219b5b721
@ -720,12 +720,12 @@ int IPhreeqc::module_open_handler(const int type, const char *file_name)
|
|||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
case Phreeqc::OUTPUT_MESSAGE:
|
case Phreeqc::OUTPUT_MESSAGE:
|
||||||
if (this->PhreeqcPtr->output != NULL)
|
if (this->PhreeqcPtr->output_file != NULL)
|
||||||
{
|
{
|
||||||
::fclose(this->PhreeqcPtr->output);
|
::fclose(this->PhreeqcPtr->output_file);
|
||||||
this->PhreeqcPtr->output = NULL;
|
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;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user