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 94b22908e0
commit 9219b5b721

View File

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