From: Rico Tzschichholz Date: Tue, 9 Oct 2018 06:28:33 +0000 (+0200) Subject: ccode: Fix typo and actually check "end_decls" X-Git-Tag: 0.43.1~194 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=861c86a05ac8b813bf58352cc8844cff3d6e1fd2;p=thirdparty%2Fvala.git ccode: Fix typo and actually check "end_decls" Note both begin_decls and end_decls must be either not null or null. Fixes https://gitlab.gnome.org/GNOME/vala/issues/672 --- diff --git a/ccode/valaccodefile.vala b/ccode/valaccodefile.vala index aa5be219e..e98d84bd0 100644 --- a/ccode/valaccodefile.vala +++ b/ccode/valaccodefile.vala @@ -181,7 +181,7 @@ public class Vala.CCodeFile { once.append (constant_declaration); once.append (new CCodeNewline ()); - if (begin_decls != null) { + if (end_decls != null) { once.append (new CCodeIdentifier (end_decls)); once.append (new CCodeNewline ()); }