[pacman-dev] inconsistent behaviour in handle.c
28 Mar
2011
28 Mar
'11
12:33 a.m.
Hello, The functions defined in handle.c seem to have an inconsistent behaviour. Many of them check that handle is not NULL before acting, and set pm_errno to PM_ERR_HANDLE_NULL if so. But others do not, and segfault if used before alpm_initialize() is called. Is there a rationale behind that or should it be patched? Regards, Rémy.
28 Mar
28 Mar
3:29 a.m.
On Sun, Mar 27, 2011 at 11:33 AM, Rémy Oudompheng
Hello,
The functions defined in handle.c seem to have an inconsistent behaviour. Many of them check that handle is not NULL before acting, and set pm_errno to PM_ERR_HANDLE_NULL if so.
But others do not, and segfault if used before alpm_initialize() is called. Is there a rationale behind that or should it be patched?
Should probably be patched. -Dan
4791
Age (days ago)
4791
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dan McGee
-
Rémy Oudompheng