Removes a debug variable (new_fd)

This commit is contained in:
Carles Pina i Estany 2009-11-22 16:57:17 +00:00
parent 938d89c04d
commit c505aa627f

View file

@ -175,22 +175,19 @@ grub_mofile_open (const char *filename)
{ {
int unsigned magic; int unsigned magic;
int version; int version;
grub_file_t new_fd;
/* Using fd_mo and not another variable because /* Using fd_mo and not another variable because
it's needed for grub_gettext_get_info. */ it's needed for grub_gettext_get_info. */
new_fd = grub_gzfile_open (filename, 1); fd_mo = grub_gzfile_open (filename, 1);
grub_errno = GRUB_ERR_NONE; grub_errno = GRUB_ERR_NONE;
if (!new_fd) if (!fd_mo)
{ {
grub_dprintf ("gettext: Cannot read %s", filename); grub_dprintf ("gettext", "Cannot read %s", filename);
return 0; return 0;
} }
fd_mo = new_fd;
magic = grub_gettext_get_info (GETTEXT_MAGIC_NUMBER); magic = grub_gettext_get_info (GETTEXT_MAGIC_NUMBER);
if (magic != MO_MAGIC_NUMBER) if (magic != MO_MAGIC_NUMBER)