From fa3d7a5728fa6bd3f6c74076f7ada4e270041d4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Thu, 4 Aug 2011 15:49:35 +0200 Subject: [PATCH] minor : Fixed ntfs_upcase_build_default() returning garbage in error case (Fabian Keil) --- libntfs-3g/unistr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/unistr.c b/libntfs-3g/unistr.c index 06095097..c0ac3427 100644 --- a/libntfs-3g/unistr.c +++ b/libntfs-3g/unistr.c @@ -1262,7 +1262,7 @@ void ntfs_upcase_table_build(ntfschar *uc, u32 uc_len) u32 ntfs_upcase_build_default(ntfschar **upcase) { - u32 upcase_len; + u32 upcase_len = 0; *upcase = (ntfschar*)ntfs_malloc(UPCASE_LEN*2); if (*upcase) {