From bbc72a929752fa6d789f36650f0cc6bc7679b870 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Wed, 18 Nov 2015 19:55:56 +0100 Subject: [PATCH] Issue #306 - fix an old typo hidden by a cast! Thanks to @benkasminbullock for spotting this fix. --- src/tidylib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )