if (size > OFFSET_OF (boot_file, bp) && path) | if (boot_file) { { > if (path) > { > grub_env_set_net_property (name, "boot_file", boot_file *path = grub_strndup (bp->boot_file, sizeof (bp->boot_f ~ *path = grub_strndup (boot_file, boot_file_len); grub_print_error (); grub_print_error (); if (*path) if (*path) { { char *slash; char *slash; slash = grub_strrchr (*path, '/'); slash = grub_strrchr (*path, '/'); if (slash) if (slash) *slash = 0; *slash = 0; else else **path = 0; **path = 0; > } } } } }