diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2009-12-05 01:50:09 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-03-15 01:25:48 +0100 |
commit | 1aa1d00248ac89fb02e762b96c58559a04679b2e (patch) | |
tree | 0326bf37268fa6167f4b17e38b58bda598a82da4 /lib/libalpm/conflict.c | |
parent | be2f43191d0d0cdf02d72ac72a013697b0f7e879 (diff) | |
download | pacman-1aa1d00248ac89fb02e762b96c58559a04679b2e.tar.gz pacman-1aa1d00248ac89fb02e762b96c58559a04679b2e.tar.xz |
fix a few warnings reported by clang
- remove unused variables
- some more sanity checks
- safer printf
Signed-off-by: Xavier Chantry <shiningxc@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/conflict.c')
-rw-r--r-- | lib/libalpm/conflict.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/conflict.c b/lib/libalpm/conflict.c index e934c01e..85db83ba 100644 --- a/lib/libalpm/conflict.c +++ b/lib/libalpm/conflict.c @@ -408,7 +408,7 @@ alpm_list_t *_alpm_db_find_fileconflicts(pmdb_t *db, pmtrans_t *trans, ALPM_LOG_FUNC; - if(db == NULL || upgrade == NULL) { + if(db == NULL || upgrade == NULL || trans == NULL) { return(NULL); } |