~vorlon/ubuntu/precise/grub2/lp.942846

« back to all changes in this revision

Viewing changes to grub-core/kern/file.c

  • Committer: Colin Watson
  • Date: 2011-05-16 22:43:37 UTC
  • mfrom: (1892.1.515 grub)
  • Revision ID: cjwatson@canonical.com-20110516224337-27u9u9wef4gc8ibj
merge from Debian 1.99-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    goto fail;
69
69
 
70
70
  /* Get the file part of NAME.  */
71
 
  file_name = grub_strchr (name, ')');
 
71
  file_name = (name[0] == '(') ? grub_strchr (name, ')') : NULL;
72
72
  if (file_name)
73
73
    file_name++;
74
74
  else