1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

ext2fs: Fix a bug when sorting htree entries.

This a typo introduced when bringing the original code from NetBSD.

Reported by:	Mike Ma
MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2014-03-06 21:02:16 +00:00
parent b3a67a4242
commit 157b40af8e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=262869

View File

@ -471,7 +471,7 @@ ext2_htree_cmp_sort_entry(const void *e1, const void *e2)
if (entry1->h_hash < entry2->h_hash)
return (-1);
if (entry2->h_hash > entry2->h_hash)
if (entry1->h_hash > entry2->h_hash)
return (1);
return (0);
}