libopkg: initialize conffile list during status parsing
authorJo-Philipp Wich <jo@mein.io>
Wed, 22 Feb 2017 12:27:20 +0000 (13:27 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 22 Feb 2017 12:40:58 +0000 (13:40 +0100)
commit271d485c10f2070573b25e740b93839945dbcd9d
tree3bdc53182bae9a17961b84bfa28c5b6b87b04982
parentbec9804c73acf74ba112c9eec4ce7ba97e140c89
libopkg: initialize conffile list during status parsing

When parsing conffile information from status files, we need to initialize
the conffile list head upon encountering a "Conffiles:" line, otherwise
parse_conffiles() will ignore all subsequent entries due to a missing list
pointer.

Fixes missing conffile information in /usr/lib/opkg/status on a fresh
installation.

Reported-by: Hartmut Birr <e9hack@gmail.com>
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/pkg_parse.c