libopkg: discard empty control file fields
authorJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:28:09 +0000 (10:28 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 10 Feb 2017 09:28:09 +0000 (10:28 +0100)
commitae179dcbb64f8797235f20521ac7dfcf3ce65ce4
tree225e2945d151a54f70a06994bba0cbe3d1b6063f
parentcd113c7ea9d8883d9cdc4c3e4ea4f87531737183
libopkg: discard empty control file fields

If the resulting string is empty after whitespace trimming, free it and
store NULL instead of an empty string buffer.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/parse_util.c