diff --git a/ChangeLog b/ChangeLog index e05801f9..233ccfff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/libvips/deprecated/vips7compat.c b/libvips/deprecated/vips7compat.c index 1be6beed..e02a1fb8 100644 --- a/libvips/deprecated/vips7compat.c +++ b/libvips/deprecated/vips7compat.c @@ -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 );