Skip to content
Permalink
Browse files

Fixed Coverity issue (#168)

  • Loading branch information...
relipo committed Dec 13, 2016
1 parent 6dc5cfc commit bfa938c72368d3ba697cf260e2c00b5cc97a4f77
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/vbox/response/Response.cpp
@@ -65,12 +65,16 @@ void Response::ParseStatus()
XMLElement *errDescEl = statusElement->FirstChildElement("ErrorDescription");

if (errCodeEl)
{
errorCode = xmltv::Utilities::QueryIntText(errCodeEl);
m_error.code = static_cast<ErrorCode>(errorCode);
}

if (errDescEl)
errorDescription = xmltv::Utilities::GetStdString(errDescEl->GetText());

m_error.code = static_cast<ErrorCode>(errorCode);
m_error.description = errorDescription;
{
errorDescription = xmltv::Utilities::GetStdString(errDescEl->GetText());
m_error.description = errorDescription;
}
}
}

0 comments on commit bfa938c

Please sign in to comment.
You can’t perform that action at this time.