From 9219b5b721e39c93426bf187b2b6d0460a52db0e Mon Sep 17 00:00:00 2001 From: Scott R Charlton Date: Tue, 22 Mar 2011 23:26:17 +0000 Subject: [PATCH] updated for output_file rename git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@5222 1feff8c3-07ed-0310-ac33-dd36852eb9cd --- src/IPhreeqc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/IPhreeqc.cpp b/src/IPhreeqc.cpp index 133fb7db..1fba891a 100644 --- a/src/IPhreeqc.cpp +++ b/src/IPhreeqc.cpp @@ -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; }