Skip to content

Commit

Permalink
Issue #306 - fix an old typo hidden by a cast!
Browse files Browse the repository at this point in the history
Thanks to @benkasminbullock for spotting this fix.
  • Loading branch information
geoffmcl committed Nov 18, 2015
1 parent 06e4311 commit bbc72a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tidylib.c
Expand Up @@ -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 )
Expand Down

0 comments on commit bbc72a9

Please sign in to comment.