vips7compat missed old enum names

oops, ==0 missing from a strcmp()
This commit is contained in:
John Cupitt 2011-07-28 16:52:29 +01:00
parent 8cc0d033ea
commit 122c697349
2 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
26/7/11 started 7.26.1
- doc fixups
- oops, ==0 missing from a strcmp() in vips7compat
26/7/11 started 7.26.0
- version bunp for 7.26

View File

@ -318,7 +318,7 @@ lookup_enum( GType type, const char *names[], const char *name )
return( value->value );
for( i = 0; names[i]; i++ )
if( strcasecmp( names[i], name ) )
if( strcasecmp( names[i], name ) == 0 )
return( i );
return( -1 );