Message ID | 1419018163-33525-1-git-send-email-dmalcolm@redhat.com |
---|---|
State | New |
Headers | show |
diff --git a/gcc/jit/jit-recording.c b/gcc/jit/jit-recording.c index 1f80001..400a047 100644 --- a/gcc/jit/jit-recording.c +++ b/gcc/jit/jit-recording.c @@ -845,7 +845,7 @@ recording::context::set_str_option (enum gcc_jit_str_option opt, 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