~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to kern/dl.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2008-01-28 00:01:11 UTC
  • mto: (17.3.1 squeeze) (1.9.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080128000111-0764agvqzg601o1d
Tags: upstream-1.95+20080128
ImportĀ upstreamĀ versionĀ 1.95+20080128

Show diffs side-by-side

added added

removed removed

Lines of Context:
625
625
  if (mod)
626
626
    return mod;
627
627
  
628
 
  if (! grub_dl_dir)
629
 
    grub_fatal ("module dir is not initialized yet");
 
628
  if (! grub_dl_dir) {
 
629
    grub_error (GRUB_ERR_FILE_NOT_FOUND, "\"prefix\" is not set");
 
630
    return 0;
 
631
  }
630
632
 
631
633
  filename = (char *) grub_malloc (grub_strlen (grub_dl_dir) + 1
632
634
                                   + grub_strlen (name) + 4 + 1);