When the example is run there is a warning 'Bad quality threshold is !'. Looking at the code it comes from
main.cpp:365: fprintf( stderr, "Bad quality threshold is %c\n", badQualityThreshold ) ;
so it looks like badQualityThreshold is not calculated in GetBadQuality even for sample data.