initialized VAR

git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@4474 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
Scott R Charlton 2010-05-28 00:08:43 +00:00
parent 1874da5f1d
commit 5fa682d846

View File

@ -62,7 +62,10 @@ CVar CSelectedOutput::Get(int nRow, int nCol)const
VRESULT CSelectedOutput::Get(int nRow, int nCol, VAR* pVAR)const VRESULT CSelectedOutput::Get(int nRow, int nCol, VAR* pVAR)const
{ {
::VarClear(pVAR); if (::VarClear(pVAR) == VR_BADVARTYPE)
{
return VR_BADVARTYPE;
}
if ((size_t)nRow >= this->GetRowCount() || nRow < 0) if ((size_t)nRow >= this->GetRowCount() || nRow < 0)
{ {
pVAR->type = TT_ERROR; pVAR->type = TT_ERROR;