]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
codegen: Fix crash vapi properties with no get body but with set body
authorNathan Summers <rock@gimp.org>
Sat, 14 Dec 2013 13:29:09 +0000 (14:29 +0100)
committerLuca Bruno <lucabru@src.gnome.org>
Sat, 14 Dec 2013 13:30:25 +0000 (14:30 +0100)
Fixes bug 657348.

codegen/valaccodebasemodule.vala

index bc7411aad5827774f8da70b76720f088b3605548..090fce368ae9b76002bf6f7e858137d0dfc555e7 100644 (file)
@@ -1676,7 +1676,7 @@ public abstract class Vala.CCodeBaseModule : CodeGenerator {
                        cfile.add_function (function);
                }
 
-               if (!prop.is_abstract) {
+               if (!prop.is_abstract && acc.body != null) {
                        bool is_virtual = prop.base_property != null || prop.base_interface_property != null;
 
                        string cname = get_ccode_real_name (acc);