From a34bb3c52fb4ee039b05434189f58367aece20c7 Mon Sep 17 00:00:00 2001 From: "C. 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 d8825a65..1c8c683f 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