bug-parted
[Top][All Lists]
Advanced

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

Re: Bug in mac_alloc


From: Andrew Clausen
Subject: Re: Bug in mac_alloc
Date: Tue, 13 Jan 2004 22:19:16 +1100
User-agent: Mutt/1.5.4i

On Tue, Jan 13, 2004 at 09:58:36AM +0000, Alex Kiernan wrote:
> --- parted-1.6.6.orig/libparted/disk_mac.c    2003-06-30 01:47:58.000000000 
> +0100
> +++ parted-1.6.6/libparted/disk_mac.c 2004-01-04 03:11:40.000000000 +0000
> @@ -258,7 +258,7 @@
>               goto error;
>  
>       mac_disk_data = (MacDiskData*) ped_malloc (sizeof (MacDiskData));
> -     if (!disk->disk_specific)
> +     if (!mac_disk_data)
>               goto error_free_disk;
>       disk->disk_specific = mac_disk_data;
>       mac_disk_data->ghost_size = disk->dev->sector_size / 512;

You are correct.

Thanks!
Andrew





reply via email to

[Prev in Thread] Current Thread [Next in Thread]