Author: jkupec Date: Mon Jul 28 15:47:12 2008 New Revision: 10677 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10677&view=rev Log: - addRepo(): don't add repo condition if alias is empty Modified: trunk/libzypp/zypp/PoolQuery.cc Modified: trunk/libzypp/zypp/PoolQuery.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/PoolQuery.cc?rev=10677&r1=10676&r2=10677&view=diff ============================================================================== --- trunk/libzypp/zypp/PoolQuery.cc (original) +++ trunk/libzypp/zypp/PoolQuery.cc Mon Jul 28 15:47:12 2008 @@ -774,6 +774,11 @@ void PoolQuery::addRepo(const std::string &repoalias) { + if (repoalias.empty()) + { + WAR << "ignoring an empty repository alias" << endl; + return; + } _pimpl->_repos.insert(repoalias); _pimpl->_flags &= ~SEARCH_ALL_REPOS; } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org