From 122c69734924f35093195ae3d7a63dc971be6045 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Thu, 28 Jul 2011 16:52:29 +0100 Subject: [PATCH] vips7compat missed old enum names oops, ==0 missing from a strcmp() --- ChangeLog | 1 + libvips/deprecated/vips7compat.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 );