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:
Scott R Charlton 2011-03-22 23:26:17 +00:00
parent ae090a01b3
commit 887c4d6eae

View File

@ -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;
}