lib: fix NULL checks for filenames iterators
authorSascha Silbe <sascha-pgp@silbe.org>
Sun, 24 Jun 2012 16:29:24 +0000 (18:29 +0200)
committerDavid Bremner <bremner@debian.org>
Sun, 2 Sep 2012 02:03:11 +0000 (23:03 -0300)
commit8dd4e9770ec12de9b2e6fc53259375b2d1720f38
treee21ab9218da4a746ee3cbad782bb77e86c250b2c
parent7cd3cd30039b54aefeab3dde83bbf14badaf7a60
lib: fix NULL checks for filenames iterators

The API documentation (notmuch.h) states that the parameter may be NULL,
but the implementation only checked the current element, potentially
dereferencing a NULL pointer in the process.

Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
lib/filenames.c