* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
`devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
+2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
+
+ * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
+ `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
+
2005-01-22 Marco Gerards <metgerards@student.han.nl>
* kern/misc.c (grub_strndup): Function rewritten.
{
grub_ieee1275_phandle_t dev;
grub_ieee1275_ihandle_t dev_ihandle = 0;
- char *devpath = 0;
+ char *devpath;
/* XXX: This should be large enough for any possible case. */
char prop[64];
int actual;
- devpath = grub_strndup (name, grub_strlen (devpath) + 2);
+ devpath = grub_strndup (name, grub_strlen (name) + 2);
if (! devpath)
return grub_errno;