From 355a9768b1b62c58d5c2d943159b1d470adf1e0a Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Tue, 12 Jan 2021 20:34:27 -0500 Subject: Prevent matching the same tag twice --- bin/htagml.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/htagml.c b/bin/htagml.c index c1e75dd9..b72b5e39 100644 --- a/bin/htagml.c +++ b/bin/htagml.c @@ -128,6 +128,7 @@ int main(int argc, char *argv[]) { if (regexec(&tags[i].regex, buf, 0, NULL, 0)) continue; } tag = &tags[i]; + tag->num = num; break; } if (!tag) { -- cgit 1.4.1