libtags: use nelem

front
Sigrid 2021-04-30 12:36:01 +02:00
parent dd86214d77
commit 013b498314
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ tagsget(Tagctx *ctx)
ctx->found = 0;
ctx->format = Funknown;
res = -1;
for(i = 0; i < (int)(sizeof(g)/sizeof(g[0])); i++){
for(i = 0; i < nelem(g); i++){
ctx->num = 0;
if(g[i].f(ctx) == 0){
if(ctx->num > 0)