summaryrefslogtreecommitdiffstats
path: root/transcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'transcode.c')
-rw-r--r--transcode.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/transcode.c b/transcode.c
index 34a61c336..15755a07c 100644
--- a/transcode.c
+++ b/transcode.c
@@ -1709,7 +1709,10 @@ econv_opts(VALUE opt)
void
rb_econv_opts(VALUE hash, rb_econv_option_t *opts)
{
- opts->flags = econv_opts(hash);
+ if (NIL_P(hash))
+ opts->flags = 0;
+ else
+ opts->flags = econv_opts(hash);
}
static int