Eliminate broken "can't happen" early return
authorPanu Matilainen <pmatilai@redhat.com>
Mon, 13 Sep 2010 11:05:02 +0000 (14:05 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Mon, 13 Sep 2010 11:08:49 +0000 (14:08 +0300)
commitb6d8d0e7ed7989ce5e2d4d8133d81adc4072440c
tree9bdf55d572d0ebab7cb4bf0166d10e236508ffaf
parent5573faf301bec875a7b2c9c706ebb2b15cfbde0a
Eliminate broken "can't happen" early return
- Opening RPMDBI_PACKAGES should indeed never fail, but if it does
  this would return way too early, leaking memory and references
  left and right. Also the dbi is rarely used for anything, only
  the rewrite mode used by markReplacedFiles() needs it, dbi
  is actually unused on dbiCclose()
lib/rpmdb.c