Commit c3cd6a07 authored by Jürg Billeter's avatar Jürg Billeter

codegen: Fix critical on unsupported struct field

parent c97a0b20
......@@ -263,6 +263,10 @@ public class Vala.CCodeStructModule : CCodeBaseModule {
var ma = new MemberAccess (this_access, f.name);
ma.symbol_reference = f;
copy = get_ref_cexpression (f.variable_type, copy, ma, f);
if (copy == null) {
// error case, continue to avoid critical
continue;
}
}
var dest = new CCodeMemberAccess.pointer (new CCodeIdentifier ("dest"), f.name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment