http://judy.sourceforge.net/doc/JudyHS_3x.htm
if (*PValue == 0) // check if duplicate
{
Dups++;
printf("Duplicate lines %lu:%lu:%s", *PValue, LineNumb, Index);
}
else
{
*PValue = LineNumb; // store Line number
}
should be:
if (*PValue == 0) // check if duplicate
{
*PValue = LineNumb; // store Line number
}
else
{
Dups++;
printf("Duplicate lines %lu:%lu:%s", *PValue, LineNumb, Index);
}
I just discovered this, and was about to post a bug. If / when there is a new release, *please* fix the code for this example. The error also appears in the JudyHS man page.
Thanks!
-Jeff