Mailinglist Archive: yast-commit (126 mails)

< Previous Next >
[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/NCPkgPackageDetails.cc?rev=67587&r1=67586&r2=67587&view=diff
==============================================================================
--- 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@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages