mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-09 14:11:22 +00:00
lib/syslinux_parse: Add missing error check.
Found by: Coverity scan.
This commit is contained in:
parent
ca7c1fd6f3
commit
49978c5c4f
@ -846,7 +846,12 @@ write_entry (struct output_buffer *outbuf,
|
|||||||
{
|
{
|
||||||
grub_err_t err;
|
grub_err_t err;
|
||||||
if (curentry->comments)
|
if (curentry->comments)
|
||||||
print (outbuf, curentry->comments, grub_strlen (curentry->comments));
|
{
|
||||||
|
err = print (outbuf, curentry->comments,
|
||||||
|
grub_strlen (curentry->comments));
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
struct syslinux_say *say;
|
struct syslinux_say *say;
|
||||||
for (say = curentry->say; say && say->next; say = say->next);
|
for (say = curentry->say; say && say->next; say = say->next);
|
||||||
|
Loading…
Reference in New Issue
Block a user