X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=lib%2Ftags.c;h=ec5366ffa23681bf4ddd37a576b2ee202199b737;hb=5e44b7444635ac7ed8c287e9d797c50705d29518;hp=b7e5602cfbac9a33637f310c2c3498cc42851ef1;hpb=5505d55515594025fe319c5150fdb360b0ffcd60;p=notmuch diff --git a/lib/tags.c b/lib/tags.c index b7e5602c..ec5366ff 100644 --- a/lib/tags.c +++ b/lib/tags.c @@ -13,7 +13,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/ . + * along with this program. If not, see https://www.gnu.org/licenses/ . * * Author: Carl Worth */ @@ -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 *