]> git.ipfire.org Git - thirdparty/vala.git/commit
genie: Add empty file check to read_token ()
authorAlistair Thomas <astavale@yahoo.co.uk>
Tue, 11 Oct 2016 17:28:35 +0000 (18:28 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 12 Oct 2016 10:43:49 +0000 (12:43 +0200)
commita4ab6177c9a659b4b76f4fd22aedbb4b22920c55
tree7a16559aea0292000d06b5a7595627f6796cdf59
parent213cec89aa3dcb234e3d41437adb99e7171e4a4b
genie: Add empty file check to read_token ()

Vala.SourceFile uses GLib.MappedFile.get_contents () to read a source
file. This can return null if the file is empty.

Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=633083
vala/valageniescanner.vala