lib/syslinux_parse: Add missing alloc check.
Found by: Coverity scan.
This commit is contained in:
parent
21f22c7107
commit
aa64393144
1 changed files with 2 additions and 0 deletions
|
@ -649,6 +649,8 @@ helptext (const char *line, grub_file_t file, struct syslinux_menu *menu)
|
||||||
grub_size_t helplen, alloclen = 0;
|
grub_size_t helplen, alloclen = 0;
|
||||||
|
|
||||||
help = grub_strdup (line);
|
help = grub_strdup (line);
|
||||||
|
if (!help)
|
||||||
|
return grub_errno;
|
||||||
helplen = grub_strlen (line);
|
helplen = grub_strlen (line);
|
||||||
while ((grub_free (buf), buf = grub_file_getline (file)))
|
while ((grub_free (buf), buf = grub_file_getline (file)))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue