Skip to content

Commit

Permalink
fix(ies2rad): Fixed version test for non-compliant (older) files
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregungory committed Nov 7, 2024
1 parent c20b5bd commit b014258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cv/ies2rad.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: ies2rad.c,v 2.36 2022/11/16 01:59:43 greg Exp $";
static const char RCSid[] = "$Id: ies2rad.c,v 2.37 2024/11/07 17:09:18 greg Exp $";
#endif
/*
* ies2rad -- Convert IES luminaire data to Radiance description
Expand Down Expand Up @@ -744,7 +744,7 @@ int
iesversion(char *buf) {
IESversions *v;

for(v = IESFILEVERSIONS; v != NULL; v++)
for(v = IESFILEVERSIONS; v->tag != NULL; v++)
if (streq(v->tag,buf))
return v->yr;
return v->yr;
Expand Down

0 comments on commit b014258

Please sign in to comment.