Skip to content

Commit

Permalink
Check that the Extensions object is a hash
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Jan 17, 2012
1 parent 3cee6f9 commit f8897f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ext/redcarpet/rc_markdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ static void rb_redcarpet_md_flags(VALUE hash, unsigned int *enabled_extensions_p
{
unsigned int extensions = 0;

Check_Type(hash, T_HASH);

/**
* Markdown extensions -- all disabled by default
*/
Expand Down

0 comments on commit f8897f9

Please sign in to comment.