~ft/libtags

55726cd44bdf8ab361ba4caee05107ab6f4ea430 — Sigrid Solveig Haflínudóttir 2 years ago ce2aea9
do not set tag bit in ctx.found unless the value is non-empty
1 files changed, 6 insertions(+), 5 deletions(-)

M tags.c
M tags.c => tags.c +6 -5
@@ 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<<type;
		ctx->num++;
	}
	if(*s)
	if(*s){
		ctx->tag(ctx, type, k, s, offset, size, f);
		if(type != Tunknown){
			ctx->found |= 1<<type;
			ctx->num++;
		}
	}
}

int