~ubuntu-branches/debian/stretch/grub2/stretch

« back to all changes in this revision

Viewing changes to gettext/gettext.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2010-06-15 12:45:35 UTC
  • mto: (1.14.1 upstream) (17.3.18 experimental)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20100615124535-9vfbis4kzv0h5bgy
Tags: upstream-1.98+20100614
ImportĀ upstreamĀ versionĀ 1.98+20100614

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
static void
310
310
grub_gettext_delete_list (void)
311
311
{
312
 
  struct grub_gettext_msg *item;
313
 
 
314
 
  while ((item =
315
 
          grub_list_pop (GRUB_AS_LIST_P (&grub_gettext_msg_list))) != 0)
 
312
  while (grub_gettext_msg_list)
316
313
    {
317
 
      char *original = (char *) ((struct grub_gettext_msg *) item)->name;
318
 
      grub_free (original);
319
 
 
 
314
      grub_free ((char *) grub_gettext_msg_list->name);
 
315
      grub_gettext_msg_list = grub_gettext_msg_list->next;
320
316
      /* Don't delete the translated message because could be in use.  */
321
317
    }
322
318
}