diff options
author | June McEnroe <june@causal.agency> | 2021-01-12 20:34:27 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-12 20:34:27 -0500 |
commit | a34bb3c52fb4ee039b05434189f58367aece20c7 (patch) | |
tree | a663f1188720cd5a7ec9de699d6e8ed79bd6a72f | |
parent | Process htagml file line by line (diff) | |
download | src-a34bb3c52fb4ee039b05434189f58367aece20c7.tar.gz src-a34bb3c52fb4ee039b05434189f58367aece20c7.zip |
Prevent matching the same tag twice
Diffstat (limited to '')
-rw-r--r-- | bin/htagml.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |