diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-10-09 08:28:33 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-10-09 08:36:49 +0200 |
commit | 861c86a05ac8b813bf58352cc8844cff3d6e1fd2 (patch) | |
tree | a1bf41b7bd9400c568b115aacfcd7ede2d6986e9 /ccode | |
parent | e1297d92dcb7fb0f683edee7a1e48a1947b29e9c (diff) | |
download | vala-861c86a05ac8b813bf58352cc8844cff3d6e1fd2.tar.gz |
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
Diffstat (limited to 'ccode')
-rw-r--r-- | ccode/valaccodefile.vala | 2 |
1 files changed, 1 insertions, 1 deletions
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 ()); } |