diff options
author | Stefano Esposito <stefano.esposito87@gmail.com> | 2007-09-11 22:27:55 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-09-18 04:59:02 +0200 |
commit | d50390c089c23ca20c23febc45ea8b9cc24e70f0 (patch) | |
tree | 02743e3ab5af43e6778d184c3e5fb749d6625e9f /pactest/Makefile.am | |
parent | 82a1129539ee6c1a87ffbe816a0c8c42f3469177 (diff) | |
download | pacman-d50390c089c23ca20c23febc45ea8b9cc24e70f0.tar.gz pacman-d50390c089c23ca20c23febc45ea8b9cc24e70f0.tar.xz |
Avoid segfaults whet calling alpm_option_get_* before initialization
When calling a function of the alpm_option_get_* group, you get a segfault
if you don't call alpm_initialize() first. With this patch those functions
set pm_errno to PM_ERR_HANDLE_NULL and return an error value if handle ==
NULL.
(Dan: modified to meet pacman coding standards)
Signed-off-by: Stefano Esposito <stefano.esposito87@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'pactest/Makefile.am')
0 files changed, 0 insertions, 0 deletions