* grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.

This commit is contained in:
Vladimir 'phcoder' Serbinenko committed 2012-05-03 09:09:30 +02:00
1 parent bb9a34e88d
commit f25cecbdb3
2 files changed
+8 -1

No files matched your search

+4 -1
View File
@@ -3113,7 +3113,10 @@ nvlist_find_value (const char *nvlist_in, const char *name,
nelm = grub_be_to_cpu32 (grub_get_unaligned32 (nvpair));
if (nelm < 1)
return grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
{
grub_error (GRUB_ERR_BAD_FS, "empty nvpair");
return 0;
}
nvpair += 4;