From 3c8220431937203b365c5f0c24b743348e7e0ca7 Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Fri, 3 Mar 2006 22:48:24 +0000 Subject: [PATCH] warn about bad stream --- zypp/parser/yum/YUMPrimaryParser.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zypp/parser/yum/YUMPrimaryParser.cc b/zypp/parser/yum/YUMPrimaryParser.cc index ee85a4f..95a131e 100644 --- a/zypp/parser/yum/YUMPrimaryParser.cc +++ b/zypp/parser/yum/YUMPrimaryParser.cc @@ -31,6 +31,9 @@ namespace zypp { YUMPrimaryParser::YUMPrimaryParser(istream &is, const string& baseUrl) : XMLNodeIterator(is, baseUrl,PRIMARYSCHEMA) { + if (is.fail()) { + ERR << "Bad stream" << endl; + } fetchNext(); } -- 2.7.4