[Tracker] Be more defensive about what libmagic sends back



Hi

Taking [0] on a null pointer is bad. This patch checks if the string returned from libmagic is null before searching for ';'.

--
Anders Rune Jensen

Attachment: tracker-defensive-magic.diff
Description: Binary data



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]