~ilya-yanok/ubuntu/precise/grub2/fix-for-948716

« back to all changes in this revision

Viewing changes to script/sh/script.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Millan
  • Date: 2009-07-25 19:00:53 UTC
  • mfrom: (1.6.3 upstream)
  • mto: (17.4.13 sid)
  • mto: This revision was merged to the branch mainline in revision 53.
  • Revision ID: james.westby@ubuntu.com-20090725190053-uv3lm6ya3zxs77ep
ImportĀ upstreamĀ versionĀ 1.96+20090725

Show diffs side-by-side

added added

removed removed

Lines of Context:
110
110
{
111
111
  struct grub_script_arg *argpart;
112
112
  struct grub_script_arg *ll;
113
 
  int len;
114
113
 
115
114
  argpart = (struct grub_script_arg *) grub_script_malloc (state, sizeof (*arg));
116
115
  argpart->type = type;
117
 
  len = grub_strlen (str) + 1;
118
 
  argpart->str = grub_script_malloc (state, len);
119
 
  grub_memcpy (argpart->str, str, len);
 
116
  argpart->str = str;
120
117
  argpart->next = 0;
121
118
 
122
119
  if (! arg)