the fix and when I committed it -- in between the two, DES committed a different fix, rendering this fix unneeded. Requested by: des
as this can result in a NULL pointer deference when parsing the flags later. This change fixes "pkg_add -r" on 5.0-CURRENT for me; not quite clear how the problem was introduced.
pkg_{create,delete} don't need to needlessly link with libfetch.