]> git.saurik.com Git - apt.git/commit
cachefile: Only set members that were initialized successfully
authorJulian Andres Klode <jak@debian.org>
Sat, 19 Mar 2016 00:56:38 +0000 (01:56 +0100)
committerJulian Andres Klode <jak@debian.org>
Sat, 19 Mar 2016 06:19:24 +0000 (07:19 +0100)
commitf40fdaa43271edf98b80c08e20f401b5da591501
tree11fc9ad9daaf7ba0223688fcff90a5332e1916b6
parent03bcd80f2680f0f52902665f4efe7ac83fd2aef0
cachefile: Only set members that were initialized successfully

Otherwise, things will just start failing later down the stack,
because (a) the lazy getters do not check if building was successful
and (b) any further getter call would return the invalid object
anyway.

Also initialize VS in pkgCache to nullptr by default.

Closes: #818628
apt-pkg/cachefile.cc
apt-pkg/pkgcache.cc
test/integration/test-bug-818628-unreadable-source [new file with mode: 0755]