Fix a few warnings pointed out via clang scan-build
commitb94e8ecd1fec4426baab8c90e7fc0d5583acdbef
authorDan McGee <dan@archlinux.org>
Tue, 28 Jun 2011 22:46:04 +0000 (28 17:46 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 30 Jun 2011 16:51:36 +0000 (30 11:51 -0500)
treef3d4d2800610893956ccad1691509ddf53c7f487
parent9efd10cd2ac9a7654b2c7c94df86bf09ab54f41a
Fix a few warnings pointed out via clang scan-build

Some of these are legit (the backup hash NULL checks), while others are
either extemely unlikely or just impossible for the static code
analysis to prove, but are worth adding anyway because they have little
overhead.

Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/add.c
lib/libalpm/backup.c
lib/libalpm/conflict.c
lib/libalpm/dload.c
src/pacman/pacman.c