Don’t assume that each tagging format is only used by one file format

custom
ayumi 3 months ago
parent fe38a57120
commit 52217b637d
No known key found for this signature in database
  1. 2
      lib/libtags/tags.c

@ -71,7 +71,9 @@ tagsget(Tagctx *ctx)
for(i = 0; i < nelem(g); i++){ for(i = 0; i < nelem(g); i++){
ctx->num = 0; ctx->num = 0;
if(g[i].f(ctx) == 0){ if(g[i].f(ctx) == 0){
if(ctx->format == Funknown){
ctx->format = g[i].format; ctx->format = g[i].format;
}
res = 0; res = 0;
} }
ctx->seek(ctx, ctx->restart, 0); ctx->seek(ctx, ctx->restart, 0);

Loading…
Cancel
Save