Issue #306 - fix an old typo hidden by a cast!

Thanks to @benkasminbullock for spotting this fix.
This commit is contained in:
Geoff McLane 2015-11-18 19:55:56 +01:00
parent 06e4311189
commit bbc72a9297

View file

@ -355,7 +355,7 @@ ctmbstr TIDY_CALL tidyOptGetDefault( TidyOption topt )
{ {
const TidyOptionImpl* option = tidyOptionToImpl( topt ); const TidyOptionImpl* option = tidyOptionToImpl( topt );
if ( option && option->type == TidyString ) if ( option && option->type == TidyString )
return (ctmbstr) option->dflt; return option->pdflt; /* Issue #306 - fix an old typo hidden by a cast! */
return NULL; return NULL;
} }
ulong TIDY_CALL tidyOptGetDefaultInt( TidyOption topt ) ulong TIDY_CALL tidyOptGetDefaultInt( TidyOption topt )