X-Git-Url: https://git.cworth.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Ftags.c;h=ec5366ffa23681bf4ddd37a576b2ee202199b737;hp=c7d3f66f491b5ec02495817ba85b6c6981c5fc6d;hb=HEAD;hpb=6a833a6e83865f6999707cc30768d07e1351c2cb 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 *