]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
authorhollisb <hollisb@localhost>
Sat, 22 Jan 2005 16:03:15 +0000 (16:03 +0000)
committerhollisb <hollisb@localhost>
Sat, 22 Jan 2005 16:03:15 +0000 (16:03 +0000)
* disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
`devpath' to 0.  Use `name' instead of `devpath' with `grub_strndup'.

ChangeLog
disk/powerpc/ieee1275/ofdisk.c

index bcca1f81d5629393a301fa642effba2027df09b1..d68d9e9d625ed6d9409ac435bfea600b21d2c5b0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 6a8ed816f6367b1b8dc5345385cffab7426d1d74..344f03daa25ea329fe238bc89bb75e0168223557 100644 (file)
@@ -50,12 +50,12 @@ grub_ofdisk_open (const char *name, grub_disk_t disk)
 {
   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;