From 55726cd44bdf8ab361ba4caee05107ab6f4ea430 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sigrid=20Solveig=20Hafl=C3=ADnud=C3=B3ttir?= Date: Mon, 3 May 2021 18:55:41 +0000 Subject: [PATCH] do not set tag bit in ctx.found unless the value is non-empty --- tags.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tags.c b/tags.c index 4627511..9c21a33 100644 --- a/tags.c +++ b/tags.c @@ -48,12 +48,13 @@ tagscallcb(Tagctx *ctx, int type, const char *k, char *s, int offset, int size, e--; *e = 0; } - if(type != Tunknown){ - ctx->found |= 1<num++; - } - if(*s) + if(*s){ ctx->tag(ctx, type, k, s, offset, size, f); + if(type != Tunknown){ + ctx->found |= 1<num++; + } + } } int -- 2.45.2