lib/syslinux_parse: Add missing error check.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-26 09:42:04 +01:00
parent ca7c1fd6f3
commit 49978c5c4f

View file

@ -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);