FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 03-27-2011, 04:33 PM
Rémy Oudompheng
 
Default inconsistent behaviour in handle.c

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.
 
Old 03-27-2011, 07:29 PM
Dan McGee
 
Default inconsistent behaviour in handle.c

On Sun, Mar 27, 2011 at 11:33 AM, Rémy Oudompheng
<remyoudompheng@gmail.com> wrote:
> 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
 

Thread Tools




All times are GMT. The time now is 12:25 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org