Ticket 48617 - Coverity fixes
Bug Description: During the addition of the combined cachesize checks, an
number of coverity issues were found.
Fix Description: Fix the defects that coverity discovered.
https://fedorahosted.org/389/ticket/48617
Author: wibrown
Review by: nhosoi (Thanks!)