From 054d6777d5dd1e5253485d96365f53ac0ed0ad32 Mon Sep 17 00:00:00 2001 From: szaka Date: Sat, 24 Sep 2005 15:29:54 +0000 Subject: [PATCH] Fix ntfs_names_collate() input sanity check intrudoced in cleanups by reverting to the original one --- libntfs/unistr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs/unistr.c b/libntfs/unistr.c index 7fc7f64f..c488ba6d 100644 --- a/libntfs/unistr.c +++ b/libntfs/unistr.c @@ -115,7 +115,7 @@ int ntfs_names_collate(const ntfschar *name1, const u32 name1_len, ntfschar c1, c2; #ifdef DEBUG - if (!name1 || !name2 || (ic && (!upcase || !upcase_len))) { + if (!name1 || !name2 || (ic && !upcase && upcase_len)) { Dputs("ntfs_names_collate received NULL pointer!"); exit(1); }