RPM Package Manager, CVS Repository http://rpm5.org/cvs/ ____________________________________________________________________________
Server: rpm5.org Name: Jeff Johnson Root: /v/rpm/cvs Email: j...@rpm5.org Module: rpm Date: 22-May-2015 15:11:21 Branch: rpm-5_4 Handle: 2015052213112100 Modified files: (Branch: rpm-5_4) rpm/rpmdb rpmdb.c Log: - rpmdb: fix: wrong parenthesis grouping (from cppcheck). Summary: Revision Changes Path 1.392.2.30 +1 -1 rpm/rpmdb/rpmdb.c ____________________________________________________________________________ patch -p0 <<'@@ .' Index: rpm/rpmdb/rpmdb.c ============================================================================ $ cvs diff -u -r1.392.2.29 -r1.392.2.30 rpmdb.c --- rpm/rpmdb/rpmdb.c 11 May 2015 21:10:17 -0000 1.392.2.29 +++ rpm/rpmdb/rpmdb.c 22 May 2015 13:11:21 -0000 1.392.2.30 @@ -1784,7 +1784,7 @@ int initDbc; /* XXX Secondary db associated with Packages needs cursor record count */ - if (mi && mi->mi_primary && ((initDbc = mi->mi_dbc) == NULL || mi->mi_count == 0)) { + if (mi && mi->mi_primary && (initDbc = (mi->mi_dbc == NULL) || mi->mi_count == 0)) { dbiIndex dbi = dbiOpen(mi->mi_db, mi->mi_rpmtag, 0); DBT k = DBT_INIT; DBT v = DBT_INIT; @@ . ______________________________________________________________________ RPM Package Manager http://rpm5.org CVS Sources Repository rpm-cvs@rpm5.org