diff options
Diffstat (limited to 'plugins/NewsAggregator/Src/CheckFeed.cpp')
-rw-r--r-- | plugins/NewsAggregator/Src/CheckFeed.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/NewsAggregator/Src/CheckFeed.cpp b/plugins/NewsAggregator/Src/CheckFeed.cpp index aa24ef077f..a838e205b6 100644 --- a/plugins/NewsAggregator/Src/CheckFeed.cpp +++ b/plugins/NewsAggregator/Src/CheckFeed.cpp @@ -37,7 +37,8 @@ LPCTSTR CheckFeed(TCHAR *tszURL, HWND hwndDlg) int childcount = 0;
HXML node;
if (!mir_tstrcmpi(xmlGetName(hXml), _T("xml"))) {
- for (int i = 0; xmlGetAttrCount(hXml); i++) {
+ int attrcount = xmlGetAttrCount(hXml);
+ for (int i = 0; i < attrcount; i++) {
LPCTSTR szAttrName = xmlGetAttrName(hXml, i);
if (!mir_tstrcmpi(szAttrName, _T("encoding"))) {
codepage = xmlGetAttrValue(hXml, szAttrName);
@@ -207,7 +208,8 @@ void CheckCurrentFeed(MCONTACT hContact) int childcount = 0;
HXML node;
if (!mir_tstrcmpi(xmlGetName(hXml), _T("xml"))) {
- for (int i = 0; xmlGetAttrCount(hXml); i++) {
+ int attrcount = xmlGetAttrCount(hXml);
+ for (int i = 0; i < attrcount; i++) {
LPCTSTR szAttrName = xmlGetAttrName(hXml, i);
if (!mir_tstrcmpi(szAttrName, _T("encoding"))) {
codepage = xmlGetAttrValue(hXml, szAttrName);
|