mailcap: prevent segfault on test entry with %s
commite957e60d5c599e8655d87cb7210392928566ac11
authorArjen Stolk <arjen@rngd.co>
Wed, 28 Dec 2016 10:05:50 +0000 (28 11:05 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Wed, 28 Dec 2016 13:22:01 +0000 (28 14:22 +0100)
tree088085253d77c7e502958b0556fd14f24e3e64eb
parent6d78cf1c238b007d7a607834f8ff6020fdf71673
mailcap: prevent segfault on test entry with %s

When a mailcap entry with a testcommand containing %s is encountered, it is ignored. The
entry was freed, but not set to NULL, leading to a segfault later on.
src/mime/backend/mailcap.c