[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dependency bug found in main-menu (Debian-Installer)



Hi,

Can you please file a bug against main-menu?  Thanks.

David

Wed, Apr 25, 2001 at 03:09:29PM +0200 wrote:
> Hello,
> 
> I think I found a little bug in main-menu :
> 
> In function order(struct package_t *p, struct package_t **head, struct
> package_t **tail) of main-menu.c, parameter 'p' is part of a linked
> list.
> 
> Code is :
> 
> -------------------------------------------
> if (*head) {
>         (*tail)->next = *tail = p;
>         (*tail)->next = NULL;
> }
> else
>         *head = *tail = p;
> -------------------------------------------
> 
> If package p as (for exemple) 1 dependence, then p->next = dependence
> and p->next->next = NULL   ==============> that's right
> 
> But if package p doesn't have any dependence, then p->next = rest of the
> linked list.  ==============> that's the problem
> 
> I changed it by :
> 
> ------------------------------------------
> if (*head) {
>         (*tail)->next = *tail = p;
>         (*tail)->next = NULL;
> }
> else {
>         *head = *tail = p;
>         (*tail)->next = NULL;
> }
> ------------------------------------------
> 
> It seemed to solve the problem :)
> 
> 
> bye
>     Romain
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-boot-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: