alpm/handle.c: ensure handle is not NULL before proceeding
commit287e8d356e8be8ae4af00e34e25d3f6727945952
authorRémy Oudompheng <remyoudompheng@gmail.com>
Mon, 28 Mar 2011 19:47:08 +0000 (28 21:47 +0200)
committerDan McGee <dan@archlinux.org>
Tue, 29 Mar 2011 17:10:08 +0000 (29 12:10 -0500)
tree51163bd0a72821a7491ab9c9f54c1029fc6cfccc
parentb6ecb2329be53ad394a33e732ee923d85a278911
alpm/handle.c: ensure handle is not NULL before proceeding

Many alpm_option_get/set_*() functions already check this
and set pm_errno to the right value, but not all, so
this improves consistency.

Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
lib/libalpm/handle.c
lib/libalpm/util.h