summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Woodward2005-02-21 01:28:26 +0000
committerJason Woodward2005-02-21 01:28:26 +0000
commitf89ef7dc4392afaf50fd86233a8de54c0dabac3c (patch)
tree3424f5e06799771106ce3eff737a19657c6c4e63 /src
parent7878287412b013acd8b7b86e6634425621e77df7 (diff)
downloadslapt-get-f89ef7dc4392afaf50fd86233a8de54c0dabac3c.tar.gz
add_deps_to_trans() returns early if passed pkg_info_t is NULL
Diffstat (limited to 'src')
-rw-r--r--src/transaction.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/transaction.c b/src/transaction.c
index 4fc4cf0..b1a0d9f 100644
--- a/src/transaction.c
+++ b/src/transaction.c
@@ -563,6 +563,7 @@ int add_deps_to_trans(const rc_config *global_config, transaction_t *tran, struc
struct pkg_list *deps;
if( global_config->disable_dep_check == TRUE ) return 0;
+ if( pkg == NULL ) return 0;
deps = init_pkg_list();