X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Ftags.c;fp=lib%2Ftags.c;h=ec5366ffa23681bf4ddd37a576b2ee202199b737;hp=c7d3f66f491b5ec02495817ba85b6c6981c5fc6d;hb=e70df920851c6c00000b7707e3b61650548fbce7;hpb=00ec2b271d457bf7b81efed8ff91e52290a38f4a diff --git a/lib/tags.c b/lib/tags.c index c7d3f66f..ec5366ff 100644 --- a/lib/tags.c +++ b/lib/tags.c @@ -48,7 +48,7 @@ _notmuch_tags_create (const void *ctx, notmuch_string_list_t *list) notmuch_bool_t notmuch_tags_valid (notmuch_tags_t *tags) { - return tags->iterator != NULL; + return tags && (tags->iterator != NULL); } const char *