diff --git a/src/tidylib.c b/src/tidylib.c index 7501607..0d7dc88 100755 --- a/src/tidylib.c +++ b/src/tidylib.c @@ -355,7 +355,7 @@ ctmbstr TIDY_CALL tidyOptGetDefault( TidyOption topt ) { const TidyOptionImpl* option = tidyOptionToImpl( topt ); if ( option && option->type == TidyString ) - return (ctmbstr) option->dflt; + return option->pdflt; /* Issue #306 - fix an old typo hidden by a cast! */ return NULL; } ulong TIDY_CALL tidyOptGetDefaultInt( TidyOption topt )