Fix wrong strcmp evaluation.

2008-08-24  Lars-Peter Clausen  <lars@metafoo.de>

	* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
	evaluation.


svn path=/trunk/; revision=26745
This commit is contained in:
Lars-Peter Clausen 2008-08-24 16:38:23 +00:00 committed by Lars-Peter Clausen
parent c796bca92f
commit 0527aaa3e4
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-pdb.c (pdb_getattro): Fix wrong strcmp
evaluation.
2008-08-24 Lars-Peter Clausen <lars@metafoo.de>
* plug-ins/pygimp/pygimp-drawable.c (drw_transform_rotate,

View File

@ -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);