summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/provide.c
diff options
context:
space:
mode:
authorStefano Esposito <stefano.esposito87@gmail.com>2007-09-11 22:27:55 +0200
committerDan McGee <dan@archlinux.org>2007-09-18 04:59:02 +0200
commitd50390c089c23ca20c23febc45ea8b9cc24e70f0 (patch)
tree02743e3ab5af43e6778d184c3e5fb749d6625e9f /lib/libalpm/provide.c
parent82a1129539ee6c1a87ffbe816a0c8c42f3469177 (diff)
downloadpacman-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 'lib/libalpm/provide.c')
0 files changed, 0 insertions, 0 deletions