gcc/jit/ChangeLog:
* jit-recording.c (gcc::jit::recording::context::set_str_option):
Handle NULL.
From-SVN: r218969
+2014-12-19 David Malcolm <dmalcolm@redhat.com>
+
+ * jit-recording.c (gcc::jit::recording::context::set_str_option):
+ Handle NULL.
+
2014-12-11 David Malcolm <dmalcolm@redhat.com>
* docs/cp/topics/contexts.rst (gccjit::context::set_str_option):
return;
}
free (m_str_options[opt]);
- m_str_options[opt] = xstrdup (value);
+ m_str_options[opt] = value ? xstrdup (value) : NULL;
}
/* Set the given integer option for this context, or add an error if