mirror of
http://cgit.git.savannah.gnu.org/git/grub.git
synced 2026-04-28 06:33:17 +00:00
lib/syslinux_parse: Add missing error check.
Found by: Coverity scan.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user