From 0527aaa3e4a051b8f3d0bf1384bcd085bd957437 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 24 Aug 2008 16:38:23 +0000 Subject: [PATCH] Fix wrong strcmp evaluation. 2008-08-24 Lars-Peter Clausen * plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp evaluation. svn path=/trunk/; revision=26745 --- ChangeLog | 5 +++++ plug-ins/pygimp/pygimp-pdb.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 58093f9f9c..0186a03a80 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-08-24 Lars-Peter Clausen + + * plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp + evaluation. + 2008-08-24 Lars-Peter Clausen * plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate, diff --git a/plug-ins/pygimp/pygimp-pdb.c b/plug-ins/pygimp/pygimp-pdb.c index 92dc175449..06852ad678 100644 --- a/plug-ins/pygimp/pygimp-pdb.c +++ b/plug-ins/pygimp/pygimp-pdb.c @@ -711,7 +711,7 @@ pdb_getattro(PyGimpPDB *self, PyObject *attr) } if (attr_name[0] == '_') { - if (strcmp(attr_name, "__members__")) { + if (!strcmp(attr_name, "__members__")) { return build_procedure_list(); } else { return PyObject_GenericGetAttr((PyObject *)self, attr);