mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Fix possible crash when adding a new RSS stream
This commit is contained in:
@@ -258,15 +258,19 @@ bool RssFeed::parseRSS(QIODevice* device)
|
||||
parseRSSChannel(xml);
|
||||
found_channel = true;
|
||||
break;
|
||||
} else
|
||||
} else {
|
||||
qDebug() << "Skip rss item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
break;
|
||||
} else
|
||||
} else {
|
||||
qDebug() << "Skip root item: " << xml.name();
|
||||
xml.skipCurrentElement();
|
||||
}
|
||||
}
|
||||
|
||||
if (xml.error()) {
|
||||
if (xml.hasError()) {
|
||||
qWarning() << "Error parsing RSS document: " << xml.errorString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user