* fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-04-19 03:28:55 +02:00
parent 189593857c
commit f48c87aae8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
* fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
* fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.

View File

@ -749,7 +749,7 @@ grub_udf_iterate_dir (grub_fshelp_node_t dir,
grub_uint8_t raw[dirent.file_ident_length];
grub_uint16_t utf16[dirent.file_ident_length - 1];
grub_uint8_t filename[dirent.file_ident_length * 2];
grub_size_t utf16len;
grub_size_t utf16len = 0;
type = ((dirent.characteristics & GRUB_UDF_FID_CHAR_DIRECTORY) ?
(GRUB_FSHELP_DIR) : (GRUB_FSHELP_REG));