[yast-commit] r67587 - /trunk/ncurses-pkg/src/NCPkgPackageDetails.cc
Author: gs Date: Thu Mar 8 09:37:56 2012 New Revision: 67587 URL: http://svn.opensuse.org/viewcvs/yast?rev=67587&view=rev Log: better initialisation of package pointer Modified: trunk/ncurses-pkg/src/NCPkgPackageDetails.cc Modified: trunk/ncurses-pkg/src/NCPkgPackageDetails.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/ncurses-pkg/src/NCPkgPackageDetai... ============================================================================== --- trunk/ncurses-pkg/src/NCPkgPackageDetails.cc (original) +++ trunk/ncurses-pkg/src/NCPkgPackageDetails.cc Thu Mar 8 09:37:56 2012 @@ -182,13 +182,13 @@ text += pkgPtr->installSize().asString(); text += " "; - ZyppPkg package; + ZyppPkg package = tryCastToZyppPkg( pkgPtr ); ZyppPkg candidate = tryCastToZyppPkg( slbPtr->candidateObj() ); ZyppPkg installed = tryCastToZyppPkg( slbPtr->installedObj() ); if ( installed ) package = installed; - else + else if ( candidate ) package = candidate; if ( package ) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
gs@svn2.opensuse.org