Allow NULL parameter in alpm_trans_commit
commit14d6832ef24aeda7fe77cf4285538baa6e21670c
authorAllan McRae <mcrae_allan@hotmail.com>
Sat, 22 Dec 2007 15:57:43 +0000 (23 01:57 +1000)
committerDan McGee <dan@archlinux.org>
Sat, 29 Dec 2007 01:46:21 +0000 (28 19:46 -0600)
tree5e2cb671385c34ede6281c70937c46f355071e14
parentcca4ec647e6b5e1959206348360cc7412a5e8ed2
Allow NULL parameter in alpm_trans_commit

Fixes FS#7380: alpm crashes on passing NULL to alpm_trans_commit in
a sync operation.  Adds check that data parameter is not NULL in
several functions.

Signed-off-by: Allan McRae <mcrae_allan@hotmail.com>
[Dan: fix whitespace]
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/sync.c
lib/libalpm/trans.c