11 Sep
2007
11 Sep
'07
8:27 p.m.
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. Patch attached Signed-off-by: Stefano Esposito <stefano.esposito87@gmail.com> --- lib/libalpm/handle.c | 165 ++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 146 insertions(+), 19 deletions(-) -- Stefano Esposito <stefano.esposito87@gmail.com>