]> git.ipfire.org Git - thirdparty/vala.git/commit
vala: Don't use possibly uninitialized backing field of package_name 2ad4a6e8a6c7bf6b2a9fd5d825ad639c420df489
authorPrinceton Ferro <princetonferro@gmail.com>
Sat, 11 Apr 2020 07:32:54 +0000 (03:32 -0400)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 11 Apr 2020 08:59:04 +0000 (10:59 +0200)
commit2ad4a6e8a6c7bf6b2a9fd5d825ad639c420df489
tree5da70c50e978b425cf1211cefa9604f62aa0af60
parent09e565a511f43e48737b0bfb881ccfb32cf0ab82
vala: Don't use possibly uninitialized backing field of package_name

Don't check _package_name directly, which may be null at the time
installed_version is accessed. This fixes a bug where Vala wouldn't
generate errors when using symbols that are unavailable for a package
version.

Introduced by 7f0e90a5c34f437b7ab8f9197a9d42fc835b1a60

Fixes https://gitlab.gnome.org/GNOME/vala/issues/971
vala/valasourcefile.vala