lib/syslinux_parse: Add missing error check.
Found by: Coverity scan.
This commit is contained in:
parent
ca7c1fd6f3
commit
49978c5c4f
1 changed files with 6 additions and 1 deletions
|
@ -846,7 +846,12 @@ write_entry (struct output_buffer *outbuf,
|
|||
{
|
||||
grub_err_t err;
|
||||
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;
|
||||
for (say = curentry->say; say && say->next; say = say->next);
|
||||
|
|
Loading…
Reference in a new issue